forked from eXpOSNitc/spl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
README
executable file
·29 lines (22 loc) · 868 Bytes
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
SPL Compiler
============
Introduction :
SPL (System Programmer’s Language) Compiler is used in the implementation of an operating system on XSM (eXperimental String Machine). The compiler compiles the code written in SPL and translates it into machine code which is simulated on the machine.
Installation
Prerequisites :
-------------
• GCC (GNU project C and C++ compiler)
• Flex / Lex (Fast Lexical Analyser Generator)
• Bison / Yacc (GNU Project Parser Generator)
Compiling and Running :
---------------------
Run the following commands to compile and run the SPL compiler
1. make
2. ./spl <flag> < <path-to-file>
Flags :
-----
Any one of these flags is required to compile.
• --os : Compile OS Code
• --int=timer : Compile Timer Interrupt code
• --int=[1-7] : Compile Interrupt routines
• --exhandler : Compile Exception Handler