including assembly language routines in c



Is it possible to include assembly language routines in
C if I'm using a compiler which has an assembler such as gcc? could I include them in a main function or would I have to write a seperate function? what kind of privilege level would be required to execute
a program with assembly in it? how would I denote that the following
code is assembly and thus shouldn't be checked for syntax errors?

------------------------------
Robert Cloud
http://www.dpo.uab.edu/~rcloud
rcloud@xxxxxxx
.



Relevant Pages

  • Re: LPC900/80C51 Compiler Toolchain
    ... The short answer is 'No' - you can't use any GCC version beyond 2.9. ... Gcc 2.9x for the ARM was very poor, ... compile them to assembler source first. ... With modern compilers, there is seldom good reason for hand-optimising your assembly unless you are taking advantage of specific features that your compiler is unaware of. ...
    (comp.arch.embedded)
  • Re: Definition of BUG on x86
    ... assembler instruction which is generated by the compiler. ... GCC will honour it AFAICS), but if GCC _thinks_ that the ...
    (Linux-Kernel)
  • Re: Definition of BUG on x86
    ... assembler instruction which is generated by the compiler. ... GCC will honour it AFAICS), but if GCC _thinks_ that the ...
    (Linux-Kernel)
  • Re: PPC eval board
    ... You can cross compiler from ... >> yet I think but if you're doing assembler you won't need them. ... >with GCC only [but on a variety of platforms. ... Watcom's Linux-hosted ppc tool I only see the ppc assembler, ...
    (comp.arch.embedded)
  • Re: What is an Assembler
    ... > and object files to assemble/link. ... > embed gas within gcc]. ... compiler, and assembler, unless noted elsewhere. ...
    (alt.lang.asm)