standard calling convention for static function
David Livshin
david.livshin@dalsoft.com
Mon Dec 4 14:42:00 GMT 2017
On 12/04/2017 04:17 PM, David Brown wrote:
> On 04/12/17 14:55, David Livshin wrote:
>>
>> I am processing compiler-generated assembly code; not knowing calling
>> convention utilized makes it difficult.
>
> Why are you wanting to make the functions static? Just use external
> linkage, and the functions will be generated for use from external code.
>
> You can also use the "-fkeep-static-functions" compiler flag. I am not
> sure that it /guarantees/ you will get standard calling conventions, but
> I'd be surprised if you got something else.
>
>
I don't want to make the functions static - I am processing user
programs ( see dalsoft dot com ), where some functions are static.
More information about the Gcc-help
mailing list