Register | Login
Forum Index > Requests and Feedback > using registers instead of function parameters
Author Message
Pages: 1
Emil_halim
Ziron Beta Tester

avatar

(send private message)

Posts: 639
Topics: 104

Location:
Alex, Egypt
[110] using registers instead of function parameters - posted: 2011-10-24 19:46:15
hi OverHertz.

can we allow the use of registers in function as a parameters , this will save the time of pushing function parameters in the stack.

for example.

function add(eax,ebx)
{
eax += ebx;
}

....
....
so when calling this function the compiler will move the first parameter to eax register
and move the second parameter to ebx register then call the add function.

not well , add function in this case have to be without stack frame , so we need a way
that tells the compiler to not emit stack frame for this function.

forgive me for my several requests.

Emil.

http://www.freewebs.com/ogremagic/index.htm
Emil_halim
Ziron Beta Tester

avatar

(send private message)

Posts: 639
Topics: 104

Location:
Alex, Egypt
[140] - posted: 2011-10-26 18:44:37


need to know your opinion here....

Emil.

http://www.freewebs.com/ogremagic/index.htm
Admin
Site Admin

avatar

(send private message)

Posts: 933
Topics: 55

Location:
OverHertz Studio
[144] - posted: 2011-10-26 19:28:05
This feature i will need to think about it carefully, it is however a good idea that it is very possible i will add in one of the following releases.

Download Ziron
Get free hosting for Ziron related fan-sites and Ziron projects, contact me in private message.
Pages: 1
create new reply


Quick reply:

Message:



Currently Active Users:
There are currently 1 user(s) online. 0 member(s) and 1 guest(s)
Most users ever online was 1046, January 28, 2022, 2:08 pm.


Statistics:
Threads: 225 | Posts: 1848 | Members: 51 | Active Members: 51
Welcome to our newest member, yecate
const Copyright = '2011-2023 © OverHertz Ltd. All rights reserved.';
Web development by OverHertz Ltd