Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

LLVM for DOS/DJGPP? (Developers)

posted by Rugxulo Homepage, Usono, 13.09.2011, 02:00

> > > BTW do you know if LLVM/Clang support runtime array bound check?
> >
> > I don't think C (language proper) ever wants to support that because of
> > speed reasons. There were some semi-related 3rd-party patches to older
> GCCs
>
> I search and it seems that's not supported here. Only by some external
> tools, as you said, I also read about valgrind but didn't tried...

http://gcc.gnu.org/extensions.html
http://www.doc.ic.ac.uk/~phjk/BoundsChecking.html
http://williambader.com/bounds/example.html#download
http://sourceforge.net/projects/boundschecking/

"These patches add a -fbounds-checking flag that adds bounds checking tests to pointer and array accesses. Richard Jones developed the patches against gcc 2.7 in 1995. Herman ten Brugge is the current maintainer and has updated the patches for GCC 2.95.2 and later. William Bader has patches as well.

You may freely mix object modules compiled with and without bounds checking. The bounds checker also includes replacements for mem* and str* routines and can detect invalid calls against checked memory objects, even from modules compiled without bounds checking."

http://hobbes.nmsu.edu/h-browse.php?dir=/pub/os2/dev/emx/

"The emx port of GCC includes Richard W.M. Jones's bounds checking patches. See the GCC manual and \emx\gnu\doc\bounds\README for details."

http://bellard.org/tcc/

"SAFE! tcc includes an optional memory and bound checker. Bound checked code can be mixed freely with standard code."

 

Complete thread:

Back to the forum
Board view  Mix view
22758 Postings in 2121 Threads, 402 registered users (0 online)
DOS ain't dead | Admin contact
RSS Feed
powered by my little forum