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
Related Posts:
- what is stack smashing (C)?
- Compiling a .C file: Undefined symbols for architecture x86_64
- X86 assembly – Handling the IDIV instruction
- C Unknown type name ‘my_structure’
- Compiler gcc:error; no such file or directory
- Convert char to int in C and C++
- C compiler for Windows?
- gcc makefile error: “No rule to make target …”
- gcc makefile error: “No rule to make target …”
- How does #include
work in C++? - How do I install gcc on cygwin?
- need help understanding the movzbl call in this function
- ARM Assembler – How do I use CMP, BLT and BGT?
- warning: incompatible implicit declaration of built-in function ‘xyz’
- libpthread.so.0: error adding symbols: DSO missing from command line
- fatal error: Python.h: No such file or directory
- Fatal error: iostream: No such file or directory in compiling C program using GCC
- conflicting types error when compiling c program using gcc
- What is a file with extension .a?
- Display value found at given address gdb
- gcc/g++: “No such file or directory”
- Convert C program into assembly code
- (.text+0x20): undefined reference to `main’ and undefined reference to function
- Interpreting valgrind error Invalid write of size 4
- difference between
and - Warning/error “function declaration isn’t a prototype”
- Error: initializer element is not computable at load time
- warning: initializer element is not computable at load time
- Debug vs Release in CMake
- Debug vs Release in CMake
- How to compile makefile using MinGW?
- gcc error : undefined reference to `itoa’
- What is the difference between gcc/g++ and cc1/cc1plus?
- Removing trailing newline character from fgets() input
- gcc: undefined reference to
- How to repair warning: missing braces around initializer?
- Why do I get “cast from pointer to integer of different size” error?
- What happens during a “relocation has invalid symbol index” error?
- g++ output: file not recognized: File format not recognized
- xorl %eax – Instruction set architecture in IA-32
- Update GCC on OSX
- Difference between “move” and “li” in MIPS assembly language
- What does this GCC error “… relocation truncated to fit…” mean?
- Assembly x86 – “leave” Instruction
- Undefined reference to main – collect2: ld returned 1 exit status
- How can one see content of stack with GDB?
- error: unknown type name ‘bool’
- Where is the
header file on Linux? Why can’t I find ? - gcc -g :what will happen
- Make Error 127 when running trying to compile code
- File format not recognized; treating as linker script using GCC
- Gcc error: gcc: error trying to exec ‘cc1’: execvp: No such file or directory
- gcc 4.8 on MAC OS X 10.8 throws “Undefined symbols for architecture x86_64: “
- cc1.exe System Error – libwinpthread-1.dll missing – But it isn’t
- Fatal error: iostream: No such file or directory in compiling C program using GCC
- typedef fixed length array
- Is there a way to compile C++ to C Code?
- How to solve static declaration follows non-static declaration in GCC C code?
- Linker error: “linker input file unused because linking not done”, undefined reference to a function in that file
- MIPS to C Translation
- GCC: Array type has incomplete element type
- I don’t understand -Wl,-rpath -Wl,
- How to compile C program on command line using MinGW?
- GDB no such file or directory
- Compiler warning – suggest parentheses around assignment used as truth value
- What does the LEAL assembly instruction do?
- dereferencing pointer to incomplete type
- Get a substring of a char* [duplicate]
- assembly “mov” instruction
- What does \0 stand for?
- Expression must be a modifiable L-value
- How do you make an array of structs in C?
- Fastest JSON reader/writer for C++
- What is the difference between const int*, const int * const, and int const *?
- What’s the purpose of the LEA instruction?
- How to create my own header file in c++?
- C – The %x format specifier
- What does it mean to write to stdout in C?
- what is the unsigned datatype?
- Examples of good gotos in C or C++
- gdb: “No symbol table is loaded”
- Need more information about Aborted (core dumped)
- What is the “Illegal Instruction: 4” error and why does “-mmacosx-version-min=10.x” fix it?
- Going through a text file line by line in C
- How to use glOrtho() in OpenGL?
- Reversing a string in C
- When a number is written as 0x00… what does the x mean
- Returning an array using C
- explanation about push ebp and pop ebp instruction in assembly
- What are 0x01 and 0x80 representative of in C bitwise operations?
- Convert char array to string use C
- How to make parent wait for all child processes to finish?
- Difference between sizeof(char) and sizeof(char *)
- How to empty a char array?
- Passing string to a function in C – with or without pointers?
- Using ‘printf’ on a variable in C [closed]
- How to format strings using printf() to get equal length in the output
- lseek/write suddenly returns -1 with errno = 9 (Bad file descriptor)
- Should I use printf(“\n”) or putchar(‘\n’) to print a newline in C?
- error: struct has no member named X