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

Re: inlining arm-assembly in .c file



On Mon, Jul 29, 2002 at 12:24:51PM -0700, Siddharth Choudhuri wrote:

> main()
> {
>   asm("... assembly code ")
> }

You can do it as shown above.. if it is a lot of code, just put the
assembly in a separate .S file and link them together, then you can
call it from C.

Now I do have to ask: do you absolutely have to write in assembly?  It
makes things very difficult to port to other architectures...

-R


-- 
To UNSUBSCRIBE, email to debian-arm-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org



Reply to: