Lint patches

21 views
Skip to first unread message

The Beez

unread,
Feb 20, 2017, 12:48:12 PM2/20/17
to 4tH-compiler
L.s.

You know I want to write 4tH in the most vanilla and pedantic C possible. That is a challenge, because both may not lead to the same code. Still, some time ago I got some Lint patches from François Perrad and I decided they were useful to harden 4tH.

There are two I decided against. First, including the .h file with self contained .c files. Yes, you could check if the prototype matches, but that is my work, not the compilers. Second, flagging all functions in an application program as "static". That means that functions cannot be exported, but that is pretty futile in an application program and just adds noise. Tell me I'm wrong here and I'll apply them.

But there was something else. I hate applying lots of code patches to a working program, since you never know what goes wrong. Sure, I checked and double checked, but there's always that nagging little voice, saying you might have overseen something.

So, first I have to see whether the code still compiles with Coherent and Turbo C (the most difficult ones) and second, I have to gain trust again in the program by just using it. I will do that shortly.

I still have some ideas concerning some new opcodes, but I can't guarantee they will make it in the next release. If you want to inspect the code yourself, it is in SVN now (Sourceforge had some trouble 19 Feb 2017).

Of course, Francois got the proper credits for his very useful patches.

Hans Bezemer

Ron K. Jeffries

unread,
Feb 21, 2017, 9:39:35 AM2/21/17
to 4th-co...@googlegroups.com
With great respect (!!)  I ask if you know of any ongoing usage of obscure,  long abandoned C compilers e.g. Coherent? 

At some point maybe it is time to draw a line in the sand and move forward.  

Smiles 
ron k jeffries 


--
You received this message because you are subscribed to the Google Groups "4tH-compiler" group.
To unsubscribe from this group and stop receiving emails from it, send an email to 4th-compiler+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

The Beez

unread,
Feb 21, 2017, 12:14:29 PM2/21/17
to 4tH-compiler
Ron,

You can see for yourself at the "Files" download at Sourceforge. Sure, Coherent is down on the list, but DOS downloads lmost equals Android. Sure thing, because it is the preferred Forth compiler on FreeDOS.

Note there was not ONE bug detected by Lint. It's just it doesn't really fancy lints settings. Therefore, ruling out a platform just because of lint is just a bridge too far IMHO opinion.

See here for the changes we're actually talking about: https://sourceforge.net/p/forth-4th/code/1075/

Hans Bezemer


On Tuesday, February 21, 2017 at 3:39:35 PM UTC+1, rjeffries wrote:
With great respect (!!)  I ask if you know of any ongoing usage of obscure,  long abandoned C compilers e.g. Coherent? 

At some point maybe it is time to draw a line in the sand and move forward.  

Smiles 
ron k jeffries 

Reply all
Reply to author
Forward
0 new messages