Recent

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

Wings2018

  • New Member
  • *
  • Posts: 16
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: 14204
  • Probably until I exterminate Putin.
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 »
Specialize a type, not a var.

Wings2018

  • New Member
  • *
  • Posts: 16
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: 4219
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/FPC 2.0.8/3.0.4 & 2.0.12/3.2.0 - 32/64 bits on:
(K|L|X)Ubuntu 12..18, Windows XP, 7, 10 and various DOSes.

 

TinyPortal © 2005-2018