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: 638
Topics: 103

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: 638
Topics: 103

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: 925
Topics: 54

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 5 user(s) online. 0 member(s) and 5 guest(s)
Most users ever online was 533, May 5, 2016, 7:19 am.


Statistics:
Threads: 223 | Posts: 1837 | Members: 50 | Active Members: 50
Welcome to our newest member, NobodyAtWork
const Copyright = '2011-2018 © OverHertz Ltd. All rights reserved.';
Web development by OverHertz Ltd