#config

Syntax:

    #config option1, option2, ... , optionN

Explanation:

The #config directive is used to specify configuration options for the chip. There is a detailed explanation of #config in the Configuration section of the help.

XC8-style #pragma config syntax:

For compatibility with source ported from Microchip’s XC8 compiler, GCBASIC also accepts #pragma config option1, option2, …​ , optionN. The preprocessor rewrites any line starting with #pragma config (case-insensitive) directly into an equivalent #config line before compilation, so the two forms are interchangeable and #pragma config options follow the same rules as #config above.

See Also:

  • Configuration — the full explanation of PIC CONFIG words, AVR fuses, and GCBASIC’s automatic defaults
  • #chip — selecting the target chip and clock frequency