Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- get source file
- if config file in same dir, apply pre-build configs and insert any code fragments
- turn source file to tokenized list and find data declarations, remove and reserve for later
- parse tokens
- find subprogram declarations, remove and reserve for later
- insert subprogram call addresses and subprogram bodies into RAM
- finalize callable process
- convert variable names to pointers and insert data into RAM
- clean up RAM image
- place clean image in new RAM object for passing to CPU object
- compute init address
- pass RAM object and init address to CPU
- CPU run
Advertisement
Add Comment
Please, Sign In to add comment