This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: arm gcc compiler


> I'm trying to compile an arm assembly file. But gnu assembler does not
> accept EQU, DCD and others directives. Do anyone can help me with this
> stuff? Is there any patch or any page explaining how to change the
> assembly file to a gcc like one?

i use inline assembly from within a C file, and can do something like:

            asm("
                .equ    index, 255

                .arm

                .int    27 /* should be like DCD */
                .short  255

                .byte   'h','e','l','l','o'

                /* put assembly code here */
            ");

the compiler doesn't like multi-line strings nowadays, and will warn,
but i like it.

  - sam -




------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]