-
Notifications
You must be signed in to change notification settings - Fork 0
Compilation
EpicPix edited this page May 28, 2022
·
5 revisions
To compile a zprol file open the terminal, go to the location of zProl.jar and run java -jar zProl.jar filename.zprol -o filename which will make a filename.zpil, that is a compiled version of your code.
To do this you need to have nasm and ld installed
To make a .asm file from .zpil do java -jar zProl.jar filename.zpil -o filename -gasmlinux64 --unload-std which will generate filename.asm
You can compile that into a x86 linux executable using nasm -felf64 filename.asm -o filename.o and then ld filename.o -o filename -e _entry, you can run it in the terminal using ./filename
There is a chance that the generated assembly will just segfault, because I don't know how to generate assembly correctly