Compilation Options - GordianNaught/Juicy GitHub Wiki

This section details the various options that can be used when compiling a program with Juicy. Specifiers take an argument, flags take no argument and act as a switch to activate some functionality.

To view the implementation of these options, view juicy.pl.

Every option has both a long name proceeded by -- and a short name proceeded by -. Both names are detailed here.

Specifiers

  • -o or --output-file
    • this specifies the name for the produced executable
    • example juicy input.juicy -o executableName
  • -i or --input-file
    • this specifies the input file to compile
    • you can supply the input file to compile as the first argument without using this specifier
  • -a or --assembler
    • this allows you to specify the assembler used on the assembly output by the compiler to make the executable
    • the default value is gcc

Flags

  • -v or --verbose
    • this flag makes the compiler output a lot of verbose information about what it is doing
    • this is a good way to debug a program that is failing to compile
  • -t or --time
    • this flag makes the compiler output the total time of compilation and some performance information about the compilation
  • -q or --quiet
    • this flag is not implemented and I am not sure what I want it to do yet