#Option StartupMethodDisabled

Syntax:

    #option StartupMethodDisabled

This will instruct the compiler to disable all library startup methods. Examination of the generated ASM will show the disabled methods as comments. The calls to these methods can be added into the user program at a suitable place, if required.

#option StartupMethodDisabled is used to optimise the ASM created.

Example:

    'Set chip model
    #chip 16f877a

    'Example command
    #option StartupMethodDisabled

    'User Code......

See Also:

  • Configuration — the config bits this option suppresses
  • #Option Bootloader — the typical reason for using #option NoConfig
  • Compiler Control — redirecting or cancelling individual #startup routines instead of disabling all of them