* * *

Author Topic: [SOLVED] What does 2nd dash stand for in compiler options '-b-' or '-p-'?  (Read 317 times)

Wings2018

  • Newbie
  • Posts: 3
In my fp.cfg I found settings like '-b-' and '-p-', but can't find in the 'user.pdf' the meaning of the 2nd dash. What does it stand for? I don't see this consistently, so is it applicable for some compiler options only? Where is this documented?
« Last Edit: October 10, 2018, 08:13:37 pm by Wings2018 »

Thaddy

  • Hero Member
  • *****
  • Posts: 6916
Re: What does 2nd dash stand for in compiler options '-b-' or '-p-'?
« Reply #1 on: October 08, 2018, 10:04:49 pm »
In my fp.cfg I found settings like '-b-' and '-p-', but can't find in the 'user.pdf' the meaning of the 2nd dash. What does it stand for? I don't see this consistently, so is it applicable for some compiler options only? Where is this documented?
Same as off: -b means option is on, -b- means option is off. Most options also allow -b+, but its use  is more or less by convention on many OS's. So it does not need much docu,mentation, although I believe it is documented.
Code: Bash  [Select]
  1. # range checks on, explicit
  2. fpc -Cr+ hello.pas
  3. # also range checks on, implicit:
  4. fpc -Cr hello.pas
  5. # range checks off
  6. fpc -Cr- hello.pas

Edit: documented by the compiler itself:
Code: Bash  [Select]
  1. Free Pascal Compiler version 3.1.1 [2017/09/02] for x86_64  
  2. Copyright (c) 1993-2017 by Florian Klaempfl and others  
  3. /home/michael/FPC/installed/3.1.1/ppcx64 [options] <inputfile> [options]  
  4.  Put + after a boolean switch option to enable it, - to disable it.  # <<<<<---------------------
  5.  
« Last Edit: October 08, 2018, 10:15:04 pm by Thaddy »
Ada's daddy wrote this:"Fools are my theme, let satire be my song."

Wings2018

  • Newbie
  • Posts: 3
Re: What does 2nd dash stand for in compiler options '-b-' or '-p-'?
« Reply #2 on: October 09, 2018, 09:43:52 pm »
Ok, it's clear to me. Thanks for quick response !

This topic can be closed, although I don't know how or where to do this (if you tell me I can do it next time myself  :)).

lucamar

  • Full Member
  • ***
  • Posts: 240
Re: What does 2nd dash stand for in compiler options '-b-' or '-p-'?
« Reply #3 on: October 09, 2018, 10:16:29 pm »
This topic can be closed, although I don't know how or where to do this (if you tell me I can do it next time myself  :)).

Just edit your first post and change the subject to: [SOLVED] What does 2nd dash ...
Been there, done that ... barely kept the timelines.
Turbo Pascal 3 CP/M - Amstrad PCW 8256 (512 KB !!!) :P
Lazarus 1.8.4/fpc 3.0.4 - Ubuntu 10, Kubuntu 14, Windows XP SP3 (Home & Prof.) and various DOS incarnations.

 

Recent

Get Lazarus at SourceForge.net. Fast, secure and Free Open Source software downloads Open Hub project report for Lazarus