$ git clone http://github.com/rikatze/suiteki.git
$ cd suiteki
# Install dependencies
$ cabal install
# Build the assembler
$ cabal build
$ ./dist/build/suiteki/suiteki -h
suiteki - The super-cool assembler for out 1st architecture
Usage: suiteki INPUT [-o|--output ARG] [-l|--lib LIBRARY] [-d|--debug]
[--no-externals]
Assemble the given file
Available options:
-h,--help Show this help text
INPUT Input file for suiteki
-o,--output ARG The location of the output file
-l,--lib LIBRARY The location of libmincaml.S
-d,--debug Enable debug mode
--no-externals Do not use library (for debugging)
$ ./dist/build/suiteki/suiteki ./test/print.s
# assuming that you've cloned the simulator (https://github.com/forestaa/cpu_simulator) at '..'
$ ../cpu_simulator/sim_machine ./a.out
(...)
f30 0.000000 0x00000000
f31 0.000000 0x00000000
123
# assemble without library (for debugging)
$ ./dist/build/suiteki/suiteki --no-externals ./test/print-nolib.s
$ ../cpu_simulator/sim_machine ./a.out
(...)
f30 0.000000 0x00000000
f31 0.000000 0x00000000
123
$ ./dist/build/suiteki/suiteki ./test/fib.s
$ ../cpu_simulator/sim_machine ./a.out
(...)
f30 0.000000 0x00000000
f31 0.000000 0x00000000
832040
# Show output
$ xxd -b -c 4 a.out # or whatever you want
-
Notifications
You must be signed in to change notification settings - Fork 0
super-hyper-cool assembler for our 1st architecture
License
forestaa/suiteki
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
super-hyper-cool assembler for our 1st architecture
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published