Scroll to navigation

GPT(1) General Commands Manual GPT(1)

NAME

gpt - compiler, interpreter and translator for the G-Portugol programming language

SYNOPSIS


gpt [ -vhid ] [ -ots output_file ] file1 file2 ...

DESCRIPTION

gpt is a simple compiler for the G-Porutol Language. It is possible to have a list of files to be included in the compilation setting the GPT_INCLUDE environment variable, wich should have a list of file paths separated with ":".

OPTIONS

Shows version information and exits.
Shows a summary of options and exits.
Execute interpreting the source code.
Shows tips in the error report.
Compile the source code and save the resulting binary with the name output_file. Without this option the binary is named after the first source file without its extension, in the current directory; a source file with no extension gives a binary with the .out extension (.exe on Windows). On Windows, a source file with the .exe extension gives a binary whose name ends in .out.exe , so the source is not replaced. The generated code is 32-bit x86, so this option only works on x86 machines; elsewhere, use -t and compile the C code with the system compiler. On Windows and GNU/Linux, nasm(1) is looked up first in the directory of gpt and then in PATH.
Translates the source code to the C programming language and saves the resulting file as output_file.
Compiles the source code to assembly source. Saves the resulting code as output_file.

SEE ALSO

nasm(1)

ADDITIONAL INFORMATION

For further information, visit the website:
https://gportugol.github.io

AUTHOR

Thiago Silva <tsilva@sourcecraft.info> G-Portugol contributors <gportugol@googlegroups.com>