Neil Brown
8e10eb8811
Fixed a missing parameter on one of the support functions
2009-04-12 10:50:29 +00:00
Neil Brown
69c05d7258
Fixed the types in the ..TOSTRING procs in the support headers
2009-04-08 19:09:51 +00:00
Neil Brown
58167432bb
Added and fixed more of the occam operators in the support headers
2009-04-07 16:08:28 +00:00
Neil Brown
6e4e9c1808
Implemented much more of the support functions, and renamed some of the uglier types
2009-04-06 13:24:26 +00:00
Neil Brown
c4f625b1ba
Overhauled the support headers to add most of the missing occam operators as inline functions
2009-04-06 00:56:06 +00:00
Neil Brown
91092c17ff
Added some missing static specifiers to some occam support functions
2009-04-01 18:59:10 +00:00
Neil Brown
e9730bfe1e
Got the C++ backend working again, on the cgtests at least
2009-04-01 15:25:18 +00:00
Neil Brown
fae0d6d6a2
Made intrinsic PROCs take the workspace as a parameter, and turned . to _ in their names (and implemented the RESIZE.MOBILE.ARRAY.1D intrinsic)
2009-03-23 15:46:24 +00:00
Neil Brown
a995d29c32
Moved the mobile stuff across to use the CCSP API
2009-03-19 11:33:09 +00:00
Neil Brown
4bc15aae48
Bashed the backend until it works with the new mobility passes (standard occam may be broken though)
2009-02-27 17:12:17 +00:00
Neil Brown
564f611fb3
Fixed the types on the string intrinstics to be unsigned char rather than char
2009-02-27 17:01:46 +00:00
Neil Brown
6e0b56c7f6
Added some preprocessor stuff to help stop Tock trampling over various defines
2009-01-27 17:04:18 +00:00
Neil Brown
d4f1ac2797
Added nearly all the remaining intrinsic functions (all the *TOSTRING and STRINGTO*, except for floating-point types)
2009-01-27 17:00:28 +00:00
Neil Brown
63d558df20
Fixed some GCC warnings resulting from not passing the printf format through to all the necessary support functions
2009-01-27 13:03:26 +00:00
Neil Brown
d1e0ec07c4
Finished off the last of the floating point intrinsics (from appendices K and M)
...
cgtest19 now passes all its tests
2009-01-27 12:21:18 +00:00
Neil Brown
c30db7b11e
Added in C headers (dummy bodies) for all the intrinsic functions that I have so far defined in the Intrinsics module
2009-01-25 20:42:57 +00:00
Neil Brown
0189ba3793
Began implementing the occam intrinsics (some of them, at least) in the C support header
2009-01-23 19:20:26 +00:00
Neil Brown
c8a8370636
Remove the comment about needing to add overflow checking
...
Fixes #24
In that, it is the last patch in a series that fixed the lack of overflow checking in all the integer operations.
2009-01-23 14:28:44 +00:00
Neil Brown
084fcad1fe
Changed multiply back to the very simplest implementation
2009-01-23 13:36:09 +00:00
Neil Brown
ecf840fe9f
Had a go at implementing checked-multiply differently, but the results worked out slower
2009-01-23 12:44:37 +00:00
Neil Brown
72a8824940
Had a go at implementing multiply overflow checking (with a single division, and pre-checks)
...
I also added an occam testcase to help time the different between * and TIMES. But gcc optimises out the loop with TIMES under -O2, and with -O0 there is a factor of four difference.
2009-01-22 16:51:54 +00:00
Neil Brown
b08d48bd43
Added more remainder tests, and fixed our implementation of remainder to pass the tests
2009-01-22 12:58:53 +00:00
Neil Brown
fdeab43b3c
Added range checking for addition, subtraction, negation and division in the occam support headers
2009-01-22 11:26:06 +00:00
Neil Brown
c79a1ca94c
Added a missing header include in tock_support.h that the newer GCC complains about
2008-11-23 19:44:37 +00:00
Adam Sampson
f445ccbdc9
Fix C style.
...
The Tock support headers (at least the C side) follow the KRoC C standards,
which are essentially K&R with spaces before function arg lists.
2008-04-08 15:08:25 +00:00
Neil Brown
e8adfb51fa
Moved the code for setting up the terminal into tock_support.h so that C++CSP can use it too
2008-03-24 23:45:31 +00:00
Neil Brown
887a3ba98d
Added helper functions for int8_t to tock_support.h (Rain needs these)
2008-03-23 12:18:18 +00:00
Neil Brown
0265063250
Re-added the index checking for array slices in the backend
2008-03-09 16:19:01 +00:00
Neil Brown
5c43172e46
Added an annotation to array subscripts to indicate whether they should have a run-time check added or not
2008-03-09 14:30:19 +00:00
Adam Sampson
50967cba95
Split the common C99/C++ support code out into a separate header.
...
Or, rather, add a new CIF-specific header, so tock_support.h is now the common
code and each of the backends has its own. This means some of the conditional
stuff can go away.
2008-03-05 16:54:29 +00:00
Adam Sampson
bb419d28b7
Move the headers into their own directory, and install them.
...
This should make it possible to use Tock from outside its own source directory.
2008-03-05 16:43:15 +00:00