Recent

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

Wings2018

  • Newbie
  • Posts: 4
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: 7195
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 »
inline variables like in D10.3 are a bit like Brexit: if you are given the wrong information it sounds like a good idea. Every kid loves candy, but it makes you fat and your teeth will disappear.

Wings2018

  • Newbie
  • Posts: 4
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

  • Hero Member
  • *****
  • Posts: 504
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 ...
Turbo Pascal 3 CP/M - Amstrad PCW 8256 (512 KB !!!) :P
Lazarus 1.8.4/FPC 3.0.4 on:
(K)Ubuntu 11..16, Windows XP SP3 (Home/Prof.) and various DOS incarnations.