Yes, You can use gcc to compile your asm code. Use -c for compilation like this:
gcc -c file.S -o file.o
This will give object code file named file.o.
To invoke linker perform following after above command:
gcc file.o -o file
More Related Contents:
- Assembly code fsqrt and fmul instructions
- Why does GCC use multiplication by a strange number in implementing integer division?
- How can I indicate that the memory *pointed* to by an inline ASM argument may be used?
- What is the difference between ‘asm’, ‘__asm’ and ‘__asm__’?
- Using GCC to produce readable assembly?
- Adding leading underscores to assembly symbols with GCC on Win32?
- What does it mean to align the stack?
- Syscall implementation of exit()
- Looping over arrays with inline assembly
- Why are global variables in x86-64 accessed relative to the instruction pointer?
- Why does GCC pad functions with NOPs?
- How to access C variable for inline assembly manipulation?
- Reading a register value into a C variable [duplicate]
- How many GCC optimization levels are there?
- How can I multiply 64 bit operands and get 128 bit result portably?
- multi-word addition using the carry flag
- Strange array initialize expression?
- x86_64 : is stack frame pointer almost useless?
- execute binary machine code from C
- Why we need Clobbered registers list in Inline Assembly?
- calling assembly function from c
- Does GCC’s __attribute__((__packed__)) retain the original ordering?
- Why do compilers insist on using a callee-saved register here?
- Compiler changes printf to puts
- Why is gcc allowed to speculatively load from a struct?
- How to tell GCC to generate 16-bit code for real mode
- Produce loops without cmp instruction in GCC
- How to get the size of a C function from inside a C program or with inline assembly?
- Using condition flags as GNU C inline asm outputs
- What is the effect of second argument in _builtin_prefetch()?