Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
wiki:aca2019:sscompiler [2019/01/19 20:41] Andreas Moshovoswiki:aca2019:sscompiler [2019/01/19 20:47] (current) Andreas Moshovos
Line 13: Line 13:
 Test that the compiler works: Test that the compiler works:
  
-''cd ~ +''cd ~ 
-mkdir sstest +mkdir ACA; 
-cd sstest+cd ACA
 '' ''
  
 Create a c file, say //hello.c//, containing a simple printf. Something like this: Create a c file, say //hello.c//, containing a simple printf. Something like this:
  
-''#include <stdio.h> +''#include <stdio.h>\\ 
- +\\ 
-main() +main()\\ 
-+{\\ 
-printf ("hello\n"); +printf ("hello\n");\\ 
-}+}\\
 '' ''
  
 Then compile it: Then compile it:
  
-''/usr/local/ss/v3/sslittle-na-sstrix-gcc -O hello.c -o hello'+''/usr/local/ss/v3/sslittle-na-sstrix-gcc -O hello.c -o hello''
  
 Check if things look alright: Check if things look alright:
Line 52: Line 52:
 ''/usr/local/ss/v3/bin/sslittle-na-sstrix-objdump  --syms hello > hello.syms'' ''/usr/local/ss/v3/bin/sslittle-na-sstrix-objdump  --syms hello > hello.syms''
  
-Look in //hello.syms// to find all the symbols that are defined. YOu should be able to find _main in there, the address where your main function has been compiled to.+Look in //hello.syms// to find all the symbols that are defined. You should be able to find _main in there, the address where your main function has been compiled to.