Re: [fpc-pascal] fpc: -vm switch
On 11/18/12, Jonas Maebe wrote: >> Using fpc 2.6.0 >> Does 2.6.0 handle -vm switch, and how is it used? > > As it is described on the fpc help page (fpc -h, or fpc without any > parameters) Am I missing something? fpc -h gives (formatted the layout a little bit): -v Be verbose. is a combination of the following letters: e : Show errors (default) 0 : Show nothing (except errors) w : Show warnings u : Show unit info n : Show notes t : Show tried/used files h : Show hints c : Show conditionals i : Show general info d : Show debug info l : Show linenumbers r : Rhide/GCC compatibility mode s : Show time stamps q : Show message numbers a : Show everything x : Executable info (Win32 only) b : Write file names messages p : Write tree.log with parse tree with full path v : Write fpcdebug.txt with lots of debugging info I don't see "m" in this list. >> -vm, : Don't show messages numbered and >> >> Does this still apply? > > Yes, and the fpc help page also still says so. The first release that > supported it was 2.4.0. There never was any -vm switch that meant "show > macros". Adding any charcater/number after -vm gives an errormessage here (still with 2.6.0). Can you give me a working example? (I cannot access ftp://ftp.freepascal.org/pub/fpc/docs-pdf/chart.pdf currenly, it gives a time-out) Bart ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] fpc: -vm switch
On 19 Nov 2012, at 13:54, Bart wrote: Am I missing something? fpc -h gives (formatted the layout a little bit): -v Be verbose. is a combination of the following letters: [snip] v : Write fpcdebug.txt with lots of debugging info I don't see "m" in this list. It's just below that table: -v Be verbose. is a combination of the following letters: e : Show errors (default) 0 : Show nothing (except errors) w : Show warnings u : Show unit info n : Show notes t : Show tried/used files h : Show hints c : Show conditionals i : Show general info d : Show debug info l : Show linenumbersr : Rhide/GCC compatibility mode s : Show time stampsq : Show message numbers a : Show everything x : Executable info (Win32 only) b : Write file names messages p : Write tree.log with parse tree with full path v : Write fpcdebug.txt with lots of debugging info m, : Don't show messages numbered and Adding any charcater/number after -vm gives an errormessage here (still with 2.6.0). Can you give me a working example? $ fpc -vw x.pp y.pp Warning: Only one source file supported, changing source file to compile from "x.pp" into "y.pp" Target OS: Darwin for PowerPC Compiling y.pp Fatal: Can't open file "y.pp" Fatal: Compilation aborted Error: /usr/local/bin/ppcppc returned an error exitcode (normal if you did not specify a source file to be compiled) -> remove the warning at the start: $ fpc -vw x.pp y.pp -vm11001 Target OS: Darwin for PowerPC Compiling y.pp Fatal: Can't open file "y.pp" Fatal: Compilation aborted Error: /usr/local/bin/ppcppc returned an error exitcode (normal if you did not specify a source file to be compiled) To find out the message number of a particular message, compile with - vq. And you can only suppress warnings/notes/hints with that switch. Jonas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] fpc: -vm switch
On Mon, November 19, 2012 13:54, Bart wrote: > On 11/18/12, Jonas Maebe wrote: > >>> Using fpc 2.6.0 >>> Does 2.6.0 handle -vm switch, and how is it used? >> >> As it is described on the fpc help page (fpc -h, or fpc without any >> parameters) > > Am I missing something? Yes, the last line. ;-) > fpc -h gives (formatted the layout a little bit): > > -v Be verbose. is a combination of the following letters: > e : Show errors (default) > 0 : Show nothing (except errors) > w : Show warnings > u : Show unit info > n : Show notes > t : Show tried/used files > h : Show hints > c : Show conditionals > i : Show general info > d : Show debug info > l : Show linenumbers > r : Rhide/GCC compatibility mode > s : Show time stamps > q : Show message numbers > a : Show everything > x : Executable info (Win32 only) > b : Write file names messages > p : Write tree.log with parse tree with full path > v : Write fpcdebug.txt with lots of debugging info > > I don't see "m" in this list. I do: --- -v Be verbose. is a combination of the following letters: e : Show errors (default) 0 : Show nothing (except errors) w : Show warnings u : Show unit info n : Show notes t : Show tried/used files h : Show hints c : Show conditionals i : Show general info d : Show debug info l : Show linenumbersr : Rhide/GCC compatibility mode s : Show time stampsq : Show message numbers a : Show everything x : Executable info (Win32 only) b : Write file names messages p : Write tree.log with parse tree with full path v : Write fpcdebug.txt with lots of debugging info m, : Don't show messages numbered and === > Adding any charcater/number after -vm gives an errormessage here > (still with 2.6.0). > Can you give me a working example? test.pas: --- var C: cardinal; begin C := 1; WriteLn (-1 + C); end. === fpc -vwh test.pas fpc -vwh -vm4035 test.pas Tomas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] fpc: -vm switch
Jonas Maebe wrote: To find out the message number of a particular message, compile with -vq. And you can only suppress warnings/notes/hints with that switch. Noting somebody's recent comment about using -Xs- when building the compiler, that looks like another useful thing that people building from a snapshot or from subversion should be putting in. make NOGDB=1 OPT='-O- -gl -Xs- -vq' all Anything else? -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] fpc: -vm switch
On Mon, November 19, 2012 16:43, Mark Morgan Lloyd wrote: > Jonas Maebe wrote: > >> To find out the message number of a particular message, compile with >> -vq. And you can only suppress warnings/notes/hints with that switch. > > Noting somebody's recent comment about using -Xs- when building the > compiler, that looks like another useful thing that people building from > a snapshot or from subversion should be putting in. > > make NOGDB=1 OPT='-O- -gl -Xs- -vq' all > > Anything else? Well, usefulness of various parameters always depends on your needs. I don't think that -vq is very useful or important (and especially not for building the compiler) unless you specifically look for disabling certain messages or automated parsing of compiler output. Similarly, '-O- -gl -Xs-' are certainly not options to be always used for building the compiler unless you want to debug some problem in the compiler. Depending on your use case, users certainly may want to use snapshots with optimizations enabled. 'NOGDB=1' falls probably into a similar category - if you don't have the proper libgdb and are not interested in installing it (or it is not available for the particular platform), you need this parameter, otherwise there may not be many reasons for including it even when generating a snapshot. I'm sure there are other parameters which may be very useful depending on the context (e.g. -vwih or even -va when solving compilation issues during snapshot generation, etc.)... Tomas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] fpc: -vm switch
On 11/19/12, Tomas Hajny wrote: >> Am I missing something? > > Yes, the last line. ;-) I'm feeling rather stupid right now... Bart ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] fpc: -vm switch
On 11/19/12, Tomas Hajny wrote: >> Can you give me a working example? > > test.pas: > --- > var > C: cardinal; > begin > C := 1; > WriteLn (-1 + C); > end. > === > > fpc -vwh test.pas > > fpc -vwh -vm4035 test.pas > > Tomas Thanks Tom and others for clarifying. Bart ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
[fpc-pascal] mobile application
Hi All, I need to identify a reliable portable device that I can program in FPC-Pascal. This device could be a smartphone or whatever you suggest. Cost is one element to keep in mind. After the test period, we plan to buy about 50 devices. I am an old Delphi programmer and mobile is new stuff for me. To give you an idea, my cell phone is a $30 Nokia... :) The idea is to write a simple application to be used by foremen in the local harbour. At the end of every shift, foremen will write down the yields of every team, premium hours or extra hours, replacements of absent dock workers, etc. This data needs to be transmitted to the main 500,000 lines application, which is written in Delphi. No long range transmission is needed. Data could be exported by a USB cable into the office PC at the end of the shift. If long range / real time transmission is possible, that would be an added value. Any suggestion welcome. Thank you Duilio ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
[fpc-pascal] Re: mobile application
Your nokia should be fine, you can create simple J2ME application for your needs. I don't think we have J2ME classes ported yet (CMIIW), so in the mean time using something like MIDletPascal should be OK. -- View this message in context: http://free-pascal-general.1045716.n5.nabble.com/mobile-application-tp5712029p5712031.html Sent from the Free Pascal - General mailing list archive at Nabble.com. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] mobile application
HI I use this unit together with Lazarus/FPC. I write and test my programs on a normal PC, and then recompile to WinCE. http://www.cilico.us/product/handheld-pda.html Carsten > > Hi All, > > I need to identify a reliable portable device that I can program in > FPC-Pascal. > > This device could be a smartphone or whatever you suggest. > > Cost is one element to keep in mind. > > After the test period, we plan to buy about 50 devices. > > I am an old Delphi programmer and mobile is new stuff for me. > > To give you an idea, my cell phone is a $30 Nokia... :) > > The idea is to write a simple application to be used by foremen in the local > harbour. > > At the end of every shift, foremen will write down the yields of every team, > premium hours or > extra hours, replacements of absent dock workers, etc. > > This data needs to be transmitted to the main 500,000 lines application, > which is written in > Delphi. > > No long range transmission is needed. > > Data could be exported by a USB cable into the office PC at the end of the > shift. > > If long range / real time transmission is possible, that would be an added > value. > > Any suggestion welcome. > > Thank you > > Duilio > > >Denne > mail er blevet scannet for virus af TDC Mailfilter. > ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal