FreeOberon icon indicating copy to clipboard operation
FreeOberon copied to clipboard

Command line compiler

Open Spoiledpay opened this issue 3 years ago • 8 comments

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.

Spoiledpay avatar Feb 11 '22 12:02 Spoiledpay

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).

kekcleader avatar Feb 11 '22 12:02 kekcleader

Hi, I saw that you have a new version. Know how to approximate when we will have the compiler by command line. Thanks.

Spoiledpay avatar Feb 22 '22 01:02 Spoiledpay

Hi @Spoiledpay, it will take about two weeks.

kekcleader avatar Feb 22 '22 12:02 kekcleader

Hi, can you tell me if you were able to do the part of compiling with command line?

Spoiledpay avatar May 04 '22 00:05 Spoiledpay

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).

kekcleader avatar May 13 '22 13:05 kekcleader

Hi @Spoiledpay, Did you have a chance to check out the console compiler?

kekcleader avatar Nov 17 '23 00:11 kekcleader

Hello! Yes it worked very well. I used it to compile a simple HelloWorld.pas. Generated an executable for windows .exe.

Spoiledpay avatar Nov 17 '23 22:11 Spoiledpay

@Spoiledpay perfect! Let me know if you need any help or if you have any Oberon ideas.

kekcleader avatar Nov 18 '23 01:11 kekcleader