Skip to content

Latest commit

 

History

History
45 lines (33 loc) · 762 Bytes

README.md

File metadata and controls

45 lines (33 loc) · 762 Bytes

Basic comparsion of C code with it's corresponding assembly code

Compliation

Compiled using gcc

$ gcc --version
Apple clang version 14.0.0 (clang-1400.0.29.202)
Target: x86_64-apple-darwin21.6.0
Thread model: posix

Quick C -> Assembly -> Executable -> Final Execution

./C2AssemblyAndRunExecutable.sh <NAME OF C FILE>
$ ./C2AssemblyAndRunExecutable.sh helloworld.c
hello, world!

Quick C -> Assembly

./C2Assembly.sh <NAME OF C FILE>
$ ./C2Assembly.sh helloworld.c
$ cat ./helloworld.s

Quick Assembly -> Executable -> Final Execution

./AssemblyRunExecutable.sh <NAME OF Assembly FILE>
$ ./AssemblyRunExecutable.sh helloworld.s
hello, world!