FreeOberon
FreeOberon copied to clipboard
Command line compiler
Hello! There is a possibility in the near future to create a command line compiler. Very interesting series. Giving you the option to use the IDE or command line to create programs and compile them. Thanks.
Yes, this is planned for one of the next updates. FreeOberon.exe will be split into IDE and a separate compiler+linker (the name will be something like foc.exe).
Hi, I saw that you have a new version. Know how to approximate when we will have the compiler by command line. Thanks.
Hi @Spoiledpay, it will take about two weeks.
Hi, can you tell me if you were able to do the part of compiling with command line?
Hi. The command line compiler is already available as of April 22, 2022. There is now a second executable named "fob" ("fob.exe" on Windows). Run it to see help.
Basically you just supply the name of the main module. All the other modules are added automatically by parsing the IMPORT statement of the source codes.
fob MyProgram.Mod
./MyProgram
For convenience you can add the directory containing "fob" to PATH.
export PATH=$PATH:/home/user/FreeOberon
or on Windows:
SET PATH=%PATH%;C:\FreeOberon
Fob automatically finds its "installation" directory (which is not common for Linux programs).
Hi @Spoiledpay, Did you have a chance to check out the console compiler?
Hello! Yes it worked very well. I used it to compile a simple HelloWorld.pas. Generated an executable for windows .exe.
@Spoiledpay perfect! Let me know if you need any help or if you have any Oberon ideas.