Skip to content

macartur-UNB/C_goto_Assembly

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Compiler C to Assembly

Introduction

This repository is a simple compiler from C to Assembly (nasm x86).

Dependencies

$ sudo apt-get install bison
$ sudo apt-get install flex

Installation

$ git clone https://github.com/macartur/C_goto_Assembly
$ cd C_goto_Assembly
$ make

Running

    $ make run

COMPILE ASSEMBLY

    $ nasm -f elf32 <program>.asm
    $ gcc -m32 <program>.o -o <program>