Commit graph

532 commits

Author SHA1 Message Date
zik.saleeba 6be246b846 Being more conservative with dependency generation
git-svn-id: http://picoc.googlecode.com/svn/trunk@132 21eae674-98b7-11dd-bd71-f92a316d2d60
2009-02-28 21:29:51 +00:00
zik.saleeba 694d2b9d2d Made arrays with with platform shared variables
git-svn-id: http://picoc.googlecode.com/svn/trunk@131 21eae674-98b7-11dd-bd71-f92a316d2d60
2009-02-28 21:08:00 +00:00
zik.saleeba d98c55d5e5 Platform-shared global variables implemented
git-svn-id: http://picoc.googlecode.com/svn/trunk@130 21eae674-98b7-11dd-bd71-f92a316d2d60
2009-02-28 20:46:02 +00:00
zik.saleeba 085bb1fc9d Hopefully this will fix Howard's compile problem
git-svn-id: http://picoc.googlecode.com/svn/trunk@129 21eae674-98b7-11dd-bd71-f92a316d2d60
2009-02-28 20:38:16 +00:00
zik.saleeba 27c19b5e80 Removed superceded functions
git-svn-id: http://picoc.googlecode.com/svn/trunk@128 21eae674-98b7-11dd-bd71-f92a316d2d60
2009-02-28 20:01:58 +00:00
zik.saleeba d6c73f42d4 Fixed lexer issue temporarily
Diked out failing pointer test case for now
Added platform return value example


git-svn-id: http://picoc.googlecode.com/svn/trunk@127 21eae674-98b7-11dd-bd71-f92a316d2d60
2009-02-28 19:57:03 +00:00
zik.saleeba 84661d245c Reverted broken lexer
git-svn-id: http://picoc.googlecode.com/svn/trunk@126 21eae674-98b7-11dd-bd71-f92a316d2d60
2009-02-28 19:48:01 +00:00
zik.saleeba b0d8d40357 Fixed a dodgy type
git-svn-id: http://picoc.googlecode.com/svn/trunk@125 21eae674-98b7-11dd-bd71-f92a316d2d60
2009-02-28 19:32:38 +00:00
zik.saleeba b6b75396dd Added all remaining operators with a view to completing expression evaluation
git-svn-id: http://picoc.googlecode.com/svn/trunk@124 21eae674-98b7-11dd-bd71-f92a316d2d60
2009-02-28 19:30:48 +00:00
zik.saleeba 127f03eb4e Heap changes for surveyor
git-svn-id: http://picoc.googlecode.com/svn/trunk@123 21eae674-98b7-11dd-bd71-f92a316d2d60
2009-02-28 19:26:48 +00:00
zik.saleeba 9f8770047f Fixed test program for Surveyor
git-svn-id: http://picoc.googlecode.com/svn/trunk@122 21eae674-98b7-11dd-bd71-f92a316d2d60
2009-02-28 05:49:14 +00:00
zik.saleeba 6ce1662475 Platform-dependent exit() function for Surveyor
git-svn-id: http://picoc.googlecode.com/svn/trunk@121 21eae674-98b7-11dd-bd71-f92a316d2d60
2009-02-28 05:43:28 +00:00
zik.saleeba bf38bf0d5e Fixed includes for Howard
git-svn-id: http://picoc.googlecode.com/svn/trunk@120 21eae674-98b7-11dd-bd71-f92a316d2d60
2009-02-27 03:02:05 +00:00
zik.saleeba cebff6d290 Thinking about pointers to struct and array elements
git-svn-id: http://picoc.googlecode.com/svn/trunk@119 21eae674-98b7-11dd-bd71-f92a316d2d60
2009-02-26 10:44:06 +00:00
zik.saleeba 71aa142c96 Pointers now work
git-svn-id: http://picoc.googlecode.com/svn/trunk@118 21eae674-98b7-11dd-bd71-f92a316d2d60
2009-02-26 10:16:49 +00:00
zik.saleeba 73d91b6202 Change to add extra lvalue information to values
git-svn-id: http://picoc.googlecode.com/svn/trunk@117 21eae674-98b7-11dd-bd71-f92a316d2d60
2009-02-26 09:56:22 +00:00
zik.saleeba 0106b0f2cf Removed old file
git-svn-id: http://picoc.googlecode.com/svn/trunk@116 21eae674-98b7-11dd-bd71-f92a316d2d60
2009-02-25 22:00:05 +00:00
zik.saleeba 3558506261 Fiddling with pointers
git-svn-id: http://picoc.googlecode.com/svn/trunk@115 21eae674-98b7-11dd-bd71-f92a316d2d60
2009-02-25 11:14:46 +00:00
zik.saleeba 901da5409a Added missing platform.h
git-svn-id: http://picoc.googlecode.com/svn/trunk@114 21eae674-98b7-11dd-bd71-f92a316d2d60
2009-02-25 06:49:48 +00:00
zik.saleeba 339072fc50 Added copyright info
git-svn-id: http://picoc.googlecode.com/svn/trunk@113 21eae674-98b7-11dd-bd71-f92a316d2d60
2009-02-24 21:05:18 +00:00
zik.saleeba ef8bd5cdae Added a README file
git-svn-id: http://picoc.googlecode.com/svn/trunk@112 21eae674-98b7-11dd-bd71-f92a316d2d60
2009-02-24 21:00:35 +00:00
zik.saleeba 9cc9c8904e Excluding platform specific code from line count
git-svn-id: http://picoc.googlecode.com/svn/trunk@111 21eae674-98b7-11dd-bd71-f92a316d2d60
2009-02-24 19:43:03 +00:00
zik.saleeba 20fb2407ef Big reorganisation to make it easier to port to different targets
git-svn-id: http://picoc.googlecode.com/svn/trunk@110 21eae674-98b7-11dd-bd71-f92a316d2d60
2009-02-24 11:16:37 +00:00
zik.saleeba 54efa99a65 Transitional state
git-svn-id: http://picoc.googlecode.com/svn/trunk@109 21eae674-98b7-11dd-bd71-f92a316d2d60
2009-02-24 10:29:14 +00:00
zik.saleeba aa213f4129 Fixed local conflicts
git-svn-id: http://picoc.googlecode.com/svn/trunk@108 21eae674-98b7-11dd-bd71-f92a316d2d60
2009-02-24 08:00:53 +00:00
zik.saleeba 7f5aa8e701 Updated TODO
git-svn-id: http://picoc.googlecode.com/svn/trunk@107 21eae674-98b7-11dd-bd71-f92a316d2d60
2009-02-24 04:53:01 +00:00
zik.saleeba 38d9e18036 Fixed a problem with trying to compile IntrinsicPrintFP when in NON_FP mode
git-svn-id: http://picoc.googlecode.com/svn/trunk@106 21eae674-98b7-11dd-bd71-f92a316d2d60
2009-02-24 04:52:35 +00:00
zik.saleeba cf28c7513c Fixed some inconsistencies in array handling
git-svn-id: http://picoc.googlecode.com/svn/trunk@105 21eae674-98b7-11dd-bd71-f92a316d2d60
2009-02-24 02:28:35 +00:00
zik.saleeba 802f3e026f Removed some DOS end-of-line characters
git-svn-id: http://picoc.googlecode.com/svn/trunk@104 21eae674-98b7-11dd-bd71-f92a316d2d60
2009-02-24 02:14:07 +00:00
zik.saleeba 318a966bd0 Added pointer test case
git-svn-id: http://picoc.googlecode.com/svn/trunk@103 21eae674-98b7-11dd-bd71-f92a316d2d60
2009-02-24 02:12:20 +00:00
zik.saleeba 37c2364eff Character constants now work
git-svn-id: http://picoc.googlecode.com/svn/trunk@102 21eae674-98b7-11dd-bd71-f92a316d2d60
2009-02-24 01:01:02 +00:00
zik.saleeba e94767ba98 New NO_FP compile option allows removal of all floating point support
git-svn-id: http://picoc.googlecode.com/svn/trunk@101 21eae674-98b7-11dd-bd71-f92a316d2d60
2009-02-24 00:21:17 +00:00
zik.saleeba 93a6a0e9d0 Fixed a bug in array allocation (regression)
git-svn-id: http://picoc.googlecode.com/svn/trunk@100 21eae674-98b7-11dd-bd71-f92a316d2d60
2009-02-24 00:08:11 +00:00
zik.saleeba 4b11999dea stdarg parameter type checking bug sorted
git-svn-id: http://picoc.googlecode.com/svn/trunk@99 21eae674-98b7-11dd-bd71-f92a316d2d60
2009-02-21 23:38:07 +00:00
zik.saleeba 7f6503d1e0 printf() now works!
Fixed a bug in pointer sizing.


git-svn-id: http://picoc.googlecode.com/svn/trunk@98 21eae674-98b7-11dd-bd71-f92a316d2d60
2009-02-21 12:02:15 +00:00
zik.saleeba 4821d689ad Big changes to string constants.
Got rid of str.c.
First attempt at stdarg params in printf()


git-svn-id: http://picoc.googlecode.com/svn/trunk@97 21eae674-98b7-11dd-bd71-f92a316d2d60
2009-02-21 02:35:52 +00:00
zik.saleeba 2ac131247b Fixed a lexer bug in memory allocation
git-svn-id: http://picoc.googlecode.com/svn/trunk@96 21eae674-98b7-11dd-bd71-f92a316d2d60
2009-02-20 09:46:46 +00:00
zik.saleeba 89e5c66189 Implemented ellipsis for stdargs and stdarg stack handling
git-svn-id: http://picoc.googlecode.com/svn/trunk@95 21eae674-98b7-11dd-bd71-f92a316d2d60
2009-02-20 09:04:45 +00:00
zik.saleeba e6e62a26df Updated TODO
git-svn-id: http://picoc.googlecode.com/svn/trunk@94 21eae674-98b7-11dd-bd71-f92a316d2d60
2009-02-20 00:14:21 +00:00
zik.saleeba a128b58610 Implemented 'return'.
All tests now pass.

git-svn-id: http://picoc.googlecode.com/svn/trunk@93 21eae674-98b7-11dd-bd71-f92a316d2d60
2009-02-20 00:12:58 +00:00
zik.saleeba 957b620703 Revised stack and parameter handling in intrinsic functions
git-svn-id: http://picoc.googlecode.com/svn/trunk@92 21eae674-98b7-11dd-bd71-f92a316d2d60
2009-02-19 23:55:40 +00:00
zik.saleeba ebc32dc1f0 Removed unnecessary ResultOnHeap parameters - they just added code for no reason.
Arguments are now stored fully on the stack to fix a bug with nested function calls.

git-svn-id: http://picoc.googlecode.com/svn/trunk@91 21eae674-98b7-11dd-bd71-f92a316d2d60
2009-02-19 23:29:35 +00:00
zik.saleeba b428c0f544 Small fix for parameter count
git-svn-id: http://picoc.googlecode.com/svn/trunk@90 21eae674-98b7-11dd-bd71-f92a316d2d60
2009-02-19 11:07:56 +00:00
zik.saleeba 2ba0598f1c Fixed a bug in do..while - now works
git-svn-id: http://picoc.googlecode.com/svn/trunk@89 21eae674-98b7-11dd-bd71-f92a316d2d60
2009-02-19 11:01:14 +00:00
zik.saleeba 65db9a490a Added tests for functions, while and do..while
git-svn-id: http://picoc.googlecode.com/svn/trunk@88 21eae674-98b7-11dd-bd71-f92a316d2d60
2009-02-19 11:00:51 +00:00
zik.saleeba 6a1d28c1dc switch is now working.
did some work on break / continue in loops.


git-svn-id: http://picoc.googlecode.com/svn/trunk@87 21eae674-98b7-11dd-bd71-f92a316d2d60
2009-02-19 09:07:00 +00:00
zik.saleeba 834a6daca6 Added comment
git-svn-id: http://picoc.googlecode.com/svn/trunk@86 21eae674-98b7-11dd-bd71-f92a316d2d60
2009-02-19 04:55:52 +00:00
zik.saleeba f45882e7e2 Now escaping character and string constants correctly
git-svn-id: http://picoc.googlecode.com/svn/trunk@85 21eae674-98b7-11dd-bd71-f92a316d2d60
2009-02-19 04:34:36 +00:00
zik.saleeba 2caa072dec Added test case for switch/case/break
git-svn-id: http://picoc.googlecode.com/svn/trunk@84 21eae674-98b7-11dd-bd71-f92a316d2d60
2009-02-18 11:05:34 +00:00
zik.saleeba 2f5523f400 Fixed a parser bug with token checking
git-svn-id: http://picoc.googlecode.com/svn/trunk@83 21eae674-98b7-11dd-bd71-f92a316d2d60
2009-02-18 11:03:14 +00:00