[Top][All Lists]

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

RE: [avr-gcc-list] Calling C functions from assembly

From: Schwichtenberg, Knut
Subject: RE: [avr-gcc-list] Calling C functions from assembly
Date: Tue, 17 Oct 2006 08:48:29 +0200


the easiest way to find out how gcc would call a function, is to write a
small C-programm calling the function and let it compile only to
assembler by a "make testprog.s", while testprog.c is the source. There
you will find all details without additonal reading. You should set the
optimization to -O0 otherwise you will see what gcc does with unused



> -----Original Message-----
> From: 
> address@hidden
> g 
> [mailto:address@hidden
> ongnu.org] On Behalf Of Simon Han
> Sent: Monday, October 16, 2006 7:56 PM
> To: address@hidden
> Subject: [avr-gcc-list] Calling C functions from assembly
> Hi all,
>       This must be the most stupid question of the year.  :P
>       Is there a way to call C functions from assembly?  Can 
> someone point  
> me an example of this?
> Thank you very much,
> Simon
> _______________________________________________
> AVR-GCC-list mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/avr-gcc-list

reply via email to

[Prev in Thread] Current Thread [Next in Thread]