Re: regparm guarantee

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

No, its not a problem of variable arguments.  There's no problem per se.  I'm
just asking if its guaranteed or if its one of those GCC 'hints' that may or may
not be done.  


Thanks,

Yamin

Quoting qinfeng.zhang@xxxxxxxxxxx:

> Is it the problem of vararg?
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> y2bismil@xxxxxxxxxxxxxxxxxxxx
> Sent by: 
> gcc-help-owner@xxxxxxxxxxx
> 2003-11-19 04:41
> 
>  
>         To:     GCC- help <gcc-help@xxxxxxxxxxx>
>         cc:     (bcc: Qinfeng Zhang/SHA/RESEARCH/PHILIPS)
>         Subject:        regparm guarantee
>         Classification: 
> 
> 
> 
> 
> 
> I was wondering if by specifying regparam for a function if it is 
> GUARANTEED
> that parameters passed to the function will be made via register.  I ask 
> this as
> I'm interfacing with an assembly written library which links to external 
> c-code.
>  When the assembly routines call c-function, there are some that are 
> stdcall,
> and some pass variables through register (they only pass 1 variable as far 
> as I
> can see in EAX).
> 
> Is there any way to explicitly say "use EAX for this parameter?" 
> >From the wording of the manual under 'function attributes', it doesn't 
> appear
> so.  But I might guess that it places the 1st paramter in EAX, second in 
> EBX,
> then ECX, EDX.
> 
> Thanks,
> 
> Yamin
> 
> ----------------------------------------
> This mail sent through www.mywaterloo.ca
> 
> 
> 




----------------------------------------
This mail sent through www.mywaterloo.ca

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux