Re: including assembly language routines in c
Robert Cloud wrote:
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?
maybe difficult to find out, if your search facility is broken.
http://tldp.org/HOWTO/Assembly-HOWTO/gcc.html
et al.
Also, consider things like SSE intrinsics, or equivalent for your targets.
Then, if you have questions, sign up for gcc-help mailing list.
.
Relevant Pages
- Re: What micros do you actually hate to work with?
... with less than tiny asm ... hassle to work with 32 bit longs in assembler for an 8 bit uP, ... Microchip's C compiler tools and their assembly under MPLAB. ... is that other programmers for C are easier to find. ... (comp.arch.embedded) - 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: The Promise of Forth
... Declare variables, declare locals, let the compiler do the work ... Forth could be considered the assembler for a simplified virtual ... If you use locals then you have to initialise them each time. ... there are likely to be libraries that could be profitably used within ... (comp.lang.forth) - The never ending assembly vs. HLL war
... > branch instruction excluded is not particularly effective optimization. ... > CPU, chances are pretty good it *won't* be optimal on a different CPU. ... > discussing the futility of optimizing it in *assembler* when the ... careful and consider the code the compiler is emitting (and adjust your ... (comp.lang.asm.x86) - Re: the quality of assembly language code
... Intel's compiler is supposed to ... I have found that I prefer 'C' and assembler roughly in inverse ... >> code than human beings writing raw assembly language. ... > assembly programmers and compilers. ... (comp.lang.asm.x86) |
|