The f$Q+g or f$OVERFLOWCHECKS ONg directive turns on integer over ow checking. This means that the compiler inserts code to check for over ow when doing computations with integers. When an over ow occurs, the run-time library will print a message Overflow at xxx, and exit the program with exit code 215.
Remark:Over ow checking behaviour is not the same as in Turbo Pascal since all arithmetic operations are done via 32-bit or 64-bit values. Furthermore, the Inc() and Dec standard system procedures are checked for over ow in Free Pascal, while in Turbo Pascal they are not.
Using the f$Q-g switch switches o the over ow checking code generation.
The generation of over ow checking code can also be controlled using the -Co command line compiler option (see Users guide).