Commit graph

72 commits

Author SHA1 Message Date
Joseph Poirier 011ee0f3eb explicit casts, add includes 2015-06-17 16:57:50 -05:00
Joseph Poirier 97fbbaaf8f system includes before user includes, and cleanup 2015-06-17 16:34:26 -05:00
Joseph Poirier bbcf2fdd95 formatting 2015-06-17 03:51:29 -05:00
Joseph Poirier 1ff1ef9cfb minor formatting, add message on how to terminate interactive mode 2015-06-14 15:48:18 -05:00
Joseph Poirier b5207c06ae remove endian macros 2015-06-10 14:49:34 -05:00
Joseph Poirier 3655278bcd minor cleanup 2015-06-10 14:37:21 -05:00
Joseph Poirier 9293ed0443 use stdbool.h and convert TRUE/FALSE to true/false 2015-06-10 14:24:53 -05:00
Joseph Poirier 24e1166a55 removed unused def 2015-06-10 13:59:38 -05:00
Joseph Poirier 4e6e0ce08d rename VAR_SCOPE_DEBUG to DEBUG_VAR_SCOPE 2015-06-10 13:55:52 -05:00
Joseph Poirier ff49007571 removed FEATURE_AUTO_DECLARE_VARIABLES 2015-06-10 13:54:32 -05:00
Joseph Poirier cfb3a821b4 removed BROKEN_FLOAT_CASTS 2015-06-10 13:52:30 -05:00
Joseph Poirier 47aa04f4a4 minor reordering 2015-06-10 13:46:49 -05:00
Joseph Poirier da52154b37 remove leftover FP check 2015-06-10 13:45:28 -05:00
Joseph Poirier b2d468537e remove NO_FP checks; assume at least softfp, remove NO_MODULUS 2015-06-10 13:38:54 -05:00
JPoirier cc0882d830 wrap unistd.h with compile switch 2015-06-07 23:24:34 -05:00
Joseph Poirier 9addfe1788 tidy up compilation environment 2015-06-07 22:05:17 -05:00
Joseph Poirier 1a4b9a92c4 ongoing dev: remove unused platform specific code 2015-06-07 20:56:23 -05:00
Joseph Poirier 736650e818 removing unused platform code 2015-06-07 20:25:28 -05:00
Joseph Poirier af9b423aaa explicit (1) extern for func prototypes (2) parens in defines 2015-06-07 00:56:20 -05:00
zik.saleeba 62bc229f4a Adapted to be fully re-entrant.
Issue #137


git-svn-id: http://picoc.googlecode.com/svn/trunk@581 21eae674-98b7-11dd-bd71-f92a316d2d60
2012-09-22 05:11:44 +00:00
zik.saleeba cb4c34b506 Created Visual Studio 2011 project.
Modified to compile under Visual Studio 2011.

git-svn-id: http://picoc.googlecode.com/svn/trunk@572 21eae674-98b7-11dd-bd71-f92a316d2d60
2011-10-05 10:57:24 +00:00
zik.saleeba 55e2183bea Changes from Brian Schmalz for surveyor platform
git-svn-id: http://picoc.googlecode.com/svn/trunk@550 21eae674-98b7-11dd-bd71-f92a316d2d60
2011-02-17 21:52:15 +00:00
zik.saleeba b23d1e8e06 Big reorganisation to make it easier to access picoc as a library.
Also moved most internal header stuff to the new header interpreter.h.


git-svn-id: http://picoc.googlecode.com/svn/trunk@549 21eae674-98b7-11dd-bd71-f92a316d2d60
2011-02-17 07:11:20 +00:00
zik.saleeba 4919d40cd2 Removed superseded math library references.
git-svn-id: http://picoc.googlecode.com/svn/trunk@541 21eae674-98b7-11dd-bd71-f92a316d2d60
2011-02-15 22:59:45 +00:00
zik.saleeba e6f78cff7e Moved the picoc version string into picoc.h so it can be referenced outside picoc.
git-svn-id: http://picoc.googlecode.com/svn/trunk@540 21eae674-98b7-11dd-bd71-f92a316d2d60
2011-02-15 22:47:28 +00:00
zik.saleeba 6dd3e69fa5 Fixes for Brian Schmalz for the surveyor platform.
git-svn-id: http://picoc.googlecode.com/svn/trunk@516 21eae674-98b7-11dd-bd71-f92a316d2d60
2011-02-12 04:23:37 +00:00
zik.saleeba 8e02f32095 Added the ability to select the stack size on UNIX platforms.
Fixes issue 92.


git-svn-id: http://picoc.googlecode.com/svn/trunk@477 21eae674-98b7-11dd-bd71-f92a316d2d60
2010-07-27 14:03:06 +00:00
zik.saleeba e45e455b9b Now handling multi-line string constants correctly.
Also handling either LF newlines or CR/LF newlines in multi-line string constants correctly.
Changed handling of multi-line comments to use the new, simpler Lexer->EmitExtraNewlines field.
Made FANCY_ERROR_REPORTING standard to reduce code obfuscation.
Fixed issue 98.


git-svn-id: http://picoc.googlecode.com/svn/trunk@473 21eae674-98b7-11dd-bd71-f92a316d2d60
2010-07-27 10:35:54 +00:00
zik.saleeba e977f325ae Now has the ability to use GNU readline for input editing
git-svn-id: http://picoc.googlecode.com/svn/trunk@461 21eae674-98b7-11dd-bd71-f92a316d2d60
2010-07-05 19:53:34 +00:00
zik.saleeba e564b173be Some mods for the new SRV1_UNIX_HOST mode
git-svn-id: http://picoc.googlecode.com/svn/trunk@439 21eae674-98b7-11dd-bd71-f92a316d2d60
2010-06-13 17:23:10 +00:00
zik.saleeba 16a1872035 Now allocating heap using malloc() on UNIX
git-svn-id: http://picoc.googlecode.com/svn/trunk@431 21eae674-98b7-11dd-bd71-f92a316d2d60
2010-06-13 11:31:19 +00:00
zik.saleeba 40e338b823 Added printf() and variants to stdio
git-svn-id: http://picoc.googlecode.com/svn/trunk@424 21eae674-98b7-11dd-bd71-f92a316d2d60
2010-06-11 17:12:49 +00:00
zik.saleeba 60323df590 Fix for UltraSPARC64 alignment
git-svn-id: http://picoc.googlecode.com/svn/trunk@411 21eae674-98b7-11dd-bd71-f92a316d2d60
2010-03-02 19:58:08 +00:00
zik.saleeba 84d2c663e8 Added some platform changes for uMon
git-svn-id: http://picoc.googlecode.com/svn/trunk@400 21eae674-98b7-11dd-bd71-f92a316d2d60
2009-11-11 19:41:01 +00:00
zik.saleeba d09e156558 Fixes for Surveyor SRV-1 platform
git-svn-id: http://picoc.googlecode.com/svn/trunk@398 21eae674-98b7-11dd-bd71-f92a316d2d60
2009-11-08 19:23:50 +00:00
zik.saleeba d5e7a536f1 Now uses the system maths library by default
git-svn-id: http://picoc.googlecode.com/svn/trunk@395 21eae674-98b7-11dd-bd71-f92a316d2d60
2009-11-08 11:51:24 +00:00
zik.saleeba 09b2af4d16 Added SPARC endian checks
git-svn-id: http://picoc.googlecode.com/svn/trunk@389 21eae674-98b7-11dd-bd71-f92a316d2d60
2009-11-07 18:49:52 +00:00
zik.saleeba b737bb5973 Minor endian fix
git-svn-id: http://picoc.googlecode.com/svn/trunk@388 21eae674-98b7-11dd-bd71-f92a316d2d60
2009-11-07 18:42:20 +00:00
zik.saleeba 26c543f326 Automatic endian detection for known architectures
git-svn-id: http://picoc.googlecode.com/svn/trunk@387 21eae674-98b7-11dd-bd71-f92a316d2d60
2009-11-07 18:39:35 +00:00
zik.saleeba b777be13be Fixed the HPPA floating point problem
git-svn-id: http://picoc.googlecode.com/svn/trunk@386 21eae674-98b7-11dd-bd71-f92a316d2d60
2009-11-07 17:47:25 +00:00
zik.saleeba 31bfd34e9e Now works for Opteron 64-bit
git-svn-id: http://picoc.googlecode.com/svn/trunk@383 21eae674-98b7-11dd-bd71-f92a316d2d60
2009-11-07 13:44:08 +00:00
zik.saleeba 064c64d202 More work on 64 bit support
git-svn-id: http://picoc.googlecode.com/svn/trunk@382 21eae674-98b7-11dd-bd71-f92a316d2d60
2009-11-06 22:34:12 +00:00
zik.saleeba 3162c1a2bf Twiddling with allocation for 64-bit architectures
git-svn-id: http://picoc.googlecode.com/svn/trunk@378 21eae674-98b7-11dd-bd71-f92a316d2d60
2009-11-06 18:08:11 +00:00
surveyor.com 2493d1ff01 resync to SURVEYOR_HOST changes
git-svn-id: http://picoc.googlecode.com/svn/trunk@364 21eae674-98b7-11dd-bd71-f92a316d2d60
2009-10-31 14:39:43 +00:00
zik.saleeba b7eb4bee92 Fixed a couple of problems with floating point number printing.
Numbers outside the range 0 - 1e7 wouldn't print correct values.


git-svn-id: http://picoc.googlecode.com/svn/trunk@356 21eae674-98b7-11dd-bd71-f92a316d2d60
2009-10-29 21:43:36 +00:00
zik.saleeba 32727cc365 Native pointers feature added
git-svn-id: http://picoc.googlecode.com/svn/trunk@331 21eae674-98b7-11dd-bd71-f92a316d2d60
2009-06-05 00:55:54 +00:00
zik.saleeba 3a1e39f9d3 New fancy error reporting feature makes nice error messages
git-svn-id: http://picoc.googlecode.com/svn/trunk@330 21eae674-98b7-11dd-bd71-f92a316d2d60
2009-06-04 07:41:06 +00:00
zik.saleeba 5f0960d161 Added tests for new math library
git-svn-id: http://picoc.googlecode.com/svn/trunk@310 21eae674-98b7-11dd-bd71-f92a316d2d60
2009-05-29 01:01:07 +00:00
zik.saleeba 022e09a7a6 Fixed a bug which was causing decimal constants less than zero to be interpreted as octal
git-svn-id: http://picoc.googlecode.com/svn/trunk@308 21eae674-98b7-11dd-bd71-f92a316d2d60
2009-05-29 00:40:45 +00:00
zik.saleeba a38afda0ab Limited decimal printing to sane precision.
Made C library able to access new math library.
UNIX compile defaults to using new math library.
Changed name of new math library to math.library.c
Added defines for new math library.
Renamed new soft floating point library to softfloat_library.c

git-svn-id: http://picoc.googlecode.com/svn/trunk@304 21eae674-98b7-11dd-bd71-f92a316d2d60
2009-05-29 00:12:12 +00:00