Arm packing

Michael K. Elwood
Thu Oct 26 12:47:00 GMT 2000

Stan Katz wrote:
> Robert Floyd [ ] Wrote:
> > Since I really want to write my code in C but I also don't want to
> > recreate the wheel, since there is alot of assembly language
> > functions I
> > could use, how could I write this DoHelloWorld function in C.
> >> Snip
> <<portions deleted>>
> This lets the C compiler handle the assignment of the addresses to the
> registers which are passed as parameters to the asm function. Since the
> compiler seems to concatenate all the asm strings into one long string, I
> use a single asm statement and let it concatenate the strings before
> processing the asm.

Wouldn't it just be easier to modify your asm to properly use the C
calling conventions for your machine?

Michael K. Elwood           
QSI Corporation

The fourth(?) Law of Thermodynamics:
     (Work in Theory) <= (Work in Practice)

Want more information?  See the CrossGCC FAQ,
Want to unsubscribe? Send a note to

More information about the crossgcc mailing list