add a statistics command to compiler

just to see how many objects make up a binary
This commit is contained in:
2019-09-05 13:25:40 +03:00
parent 91995dc1b3
commit 7d92ee9e6a
4 changed files with 59 additions and 15 deletions

View File

@ -7,7 +7,7 @@ module Risc
# into one stream or binary text object. This is then written to an ELF text section.
#
# A word about positions: The c world has a thing called position independent code, and
# baically we follw that idea. Code (ie jumps and constant loads) are all relative.
# basically we follw that idea. Code (ie jumps and constant loads) are all relative.
# But we have pointers. In C the linker takes care of bending those, we have to
# do that ourselves, in write_ref. That's why we need the load adddess and basically
# we just add it to pointers.