GBC3(1)

โœจ GBC3(1) โ€” the manual, but make it make sense โœจ

okay bestie, pull up a chair, we're reading the GBC3(1) manual together and honestly? it's giving compiler core energy ๐Ÿ’…


๐ŸŽ€ NAME ๐ŸŽ€

gbc3 โ€” the GAMBAS Compiler. that's it, that's the name, she's simple, she's iconic ๐Ÿ‘‘


๐Ÿฆ‹ SYNOPSIS ๐Ÿฆ‹

gbc3 [options] [<project directory>]

like, options, and optionally a project directory. she's flexible fr fr.


๐ŸŒธ DESCRIPTION ๐ŸŒธ

so, Gambas is a free development environment built on a Basic interpreter that has object extensions โ€” think a lil mashup of Java(tm) and Visual Basic(tm), and yes the way that works is lowkey genius.

with Gambas you can, and I'm quoting the whole vibe here because it's a lot:

  • quickly design your program GUI with Qt or GTK+
  • access database systems like MySQL, PostgreSQL, SQlite or ODBC databases
  • pilot applications with DBus
  • translate your program into many languages
  • create GStreamer, OpenGL or SDL applications
  • and so on... like, the list keeps going, she's versatile ๐Ÿ’–

and gbc3? she's the compiler. her whole job is taking Gambas projects and compiling them into architecture-independent bytecode. no cap. ๐Ÿงš


โœจ OPTIONS โœจ

one bullet per flag, we do not skip, we do not summarise, we are thorough in this house ๐Ÿซถ

  • -a, --all โ€” compile all
  • -b, --bytecode-version โ€” force a specific bytecode version
  • -d, --output-desc โ€” output class description files for the IDE
  • -e, --translate-errors โ€” display translatable error messages
  • -F, --form <form file> โ€” convert a form file into code and print it
  • -g, --debug โ€” add debugging information
  • -h, --help โ€” display help and exit
  • -j, --jobs <count> โ€” number of background jobs (default: <number of CPU cores>)
  • -L, --license โ€” display license
  • -n, --default-namespace <namespace> โ€” default namespace for exported classes
  • -p, --two-pass โ€” two-pass compilation to detect more errors
  • -q --quiet โ€” do not print anything if compilation succeeds
  • -r, --root <directory> โ€” gives the gambas installation directory
  • -s, --swap โ€” swap endianness
  • -t, --translate โ€” output translation files
  • -v, --verbose โ€” verbose output
  • -V, --version โ€” display version
  • -w, --warnings โ€” display warnings
  • -x, --exec โ€” define the 'Exec' preprocessor constant

๐Ÿ”ฅ COMPILER FLAGS ๐Ÿ”ฅ

these ones are the -f girlies, each one a whole personality:

  • -f check-prefix โ€” check the prefix of variables if warnings are enable
  • -f public-module โ€” module symbols are public by default
  • -f public-control โ€” form controls are public

๐ŸŒˆ AVAILABILITY ๐ŸŒˆ

the Gambas website is at: https://gambaswiki.org/website/

the Gambas source code is available at: https://gitlab.com/gambas/gambas/

the documentation about the language is at: https://gambaswiki.org/wiki


๐Ÿ™ˆ REPORTING BUGS ๐Ÿ™ˆ

found a bug? report bugs to http://gambaswiki.org/bugtracker โ€” do it, she deserves to be fixed ๐Ÿ’€


Copyrightยฉ Benoรฎt Minisini <benoit.minisini@gambas-basic.org>;

this is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

okay that's the whole page, you read it all, I'm so proud of you โญ and just so you know โ€” this one's dated August 2024, from the GBC3(1) manual herself. go compile something gorgeous, bestie ๐ŸŽ€๐Ÿ’–

๐Ÿ“ฆ where this page comes from