radare2/binr/rarc2
pancake b7dbae4ebb * Display '*' in S= where you are
* Add note about the bug in io.va/-d/rabin2-r{v}S
* Fix rarc2/t
2010-08-15 21:30:59 +02:00
..
i * Rename r2rc to rarc2 2010-06-28 20:30:20 +02:00
t * Display '*' in S= where you are 2010-08-15 21:30:59 +02:00
config.def.h * Rename r2rc to rarc2 2010-06-28 20:30:20 +02:00
emit_arm.c * Some enhacements for rarc2. 2010-06-29 16:50:15 +02:00
emit_x64.c * Rename r2rc to rarc2 2010-06-28 20:30:20 +02:00
emit_x86.c * Some enhacements for rarc2. 2010-06-29 16:50:15 +02:00
Makefile * Speed up make mrproper 2010-07-13 11:59:55 +02:00
out.c * Rename r2rc to rarc2 2010-06-28 20:30:20 +02:00
rarc2-tool * Some enhacements for rarc2. 2010-06-29 16:50:15 +02:00
rarc2.c * Some enhacements for rarc2. 2010-06-29 16:50:15 +02:00
rarc2.h * Some enhacements for rarc2. 2010-06-29 16:50:15 +02:00
README * Rename r2rc to rarc2 2010-06-28 20:30:20 +02:00
test.r * Rename r2rc to rarc2 2010-06-28 20:30:20 +02:00

RCC : Ralang/Relocatable Code Compiler
======================================

Compiler pipeline: the picture
------------------------------

 spp     : Simple preprocessor
  |        - includes and conditional compilation
  |
ralang   : The language
  |        - imperative and simple
  |
macros   : architecture independent assembly-like macro-based
  |        - provides calling conventions and syscall definitions
  |
assembly : macros are then converted into assembly
  |        - specific for an OS/arch
  V
 gas
  |
  V
binary   : the executable, relocatable code
           - inject it for fun and profit


The language
------------

The ralang language aims to be an imperative high-level language providing
limited flexibility with some basic rules for parsing to simplify the
interpretation of the code.

Check t/ for examples

The compiler is a state machine where every character can modify the
internal state of itself while directly producing assembly code.

A gramatical parser is nothing more or nothing less than that. The language
must only permit constructions that can be directly mapped to machine code.

  write($1, .var0, .var4);  

Strings are encoded in the stack at runtime, variable access is done
explicitly by giving the delta offset against the base register.

   .var0 = "Hello";

Access modifiers:

   $1024   = numeric value 
   .var0   = get contents of variable
   &.var0  = get address of variable
   *.var0  = get contents of place where the var points to


							         --pancake