Neil Brown
d98cb21415
Added support for transforming ALT guards to the input-case -> case pass
2007-10-13 23:56:36 +00:00
Neil Brown
8b2e14f3bd
Added tests and implementation for a new pass for transforming input-case statements into case statements
2007-10-13 23:28:41 +00:00
Neil Brown
443b648d73
Corrected the pass that creates abbreviations for output expressions to also work on OutputCase statements
2007-10-13 20:52:42 +00:00
Neil Brown
ffe8477237
Added a fix to prevent running a zero-length list of processes in CIF
2007-10-13 20:02:07 +00:00
Neil Brown
9e21e4fc0d
Added a C++ implementation of the genRetypeSizes function
2007-10-13 17:57:23 +00:00
Neil Brown
1885518b8d
Changed the C genRetypeSizes function to pass the tests
2007-10-13 17:54:46 +00:00
Neil Brown
acd09137f6
Added tests for genRetypeSizes in the C and C++ backends
2007-10-13 17:49:09 +00:00
Neil Brown
b4d34d1bc7
Made the C++ array stop if there is a problem with a retyping
2007-10-13 17:01:39 +00:00
Neil Brown
c74ae12810
Changed the type of genBytesIn again, to remove redundancy in its parameters
2007-10-13 16:16:52 +00:00
Neil Brown
a98ff8cad0
Removed the horrible tockBool type, now that we are no longer using vectors to store C++ arrays
2007-10-13 15:40:39 +00:00
Neil Brown
ed38f80db0
Changed the type of genRetypeSizes to removed the unused AbbrevMode parameter
2007-10-13 15:38:04 +00:00
Neil Brown
9a48683033
Refactored the C implementation of genBytesIn to better integrate the old genBytesIn' with genBytesIn
2007-10-13 15:01:51 +00:00
Neil Brown
ffd09847fe
Removed genBytesIn' from the GenOps, in favour of adding a parameter to genBytesIn, and changed the tests and code accordingly
2007-10-13 14:51:29 +00:00
Neil Brown
d5d4580aa3
Changed the type of genSlice, and put the C++ version into the GenOps dictionary, as well as adding tests for the function
2007-10-13 13:20:40 +00:00
Neil Brown
886659fd09
Changed the C++ backend to pass the RETYPES tests (primarily white-space changes, and also reordering the parameters for tockArrayView)
2007-10-13 12:58:20 +00:00
Neil Brown
324257198a
Changed the C backend to pass the RETYPES tests (mainly white-space changes)
2007-10-13 12:51:13 +00:00
Neil Brown
a1f0faac8f
Added tests for RETYPES specifications in the C and C++ backends
2007-10-13 12:50:39 +00:00
Neil Brown
90799499d8
Changed a constructor of tockArrayView in the C++CSP support header, so that retyping conversions are more distinct from same-type constructors
2007-10-13 12:50:01 +00:00
Neil Brown
ec43e592f0
Fixed the initialisation of C++ channel arrays to initialise the correct array
2007-10-11 01:32:36 +00:00
Neil Brown
a1f209fb0d
Added missing linker flags to the C++ all-in-one compilation command
2007-10-11 01:32:01 +00:00
Neil Brown
a1baa16d9e
Made some fixes in the support header files, and changed functions to fix issues with const-ness in C++
2007-10-11 01:30:49 +00:00
Neil Brown
3b0be45b74
Changed the Makefile rules for the cgtests so that it will clean them, and so it won't connect to the SVN repository every time
2007-10-11 01:04:03 +00:00
Neil Brown
3a959d69f4
Added inline modifiers to some of the short functions in the C++CSP support header file
2007-10-11 00:51:55 +00:00
Neil Brown
8d0b5fbe1a
Added a helper function for receiving an array of bytes, and changed the C++CSP backend and tests to use the function
2007-10-11 00:51:07 +00:00
Neil Brown
1694f524fd
Fixed a couple of mistakes in the C++CSP support header file
2007-10-11 00:40:41 +00:00
Neil Brown
4935a04aa4
Added the simplifyComms pass to the shared pass list for the compiler, and removed the corresponding code in the C backend that the pass replaces
2007-10-11 00:14:27 +00:00
Neil Brown
126226b039
Implemented the outExprs pass, and got it passing all the tests
2007-10-11 00:12:41 +00:00
Neil Brown
73ee9319e1
Added more tests for the outExprs pass in PassTest
2007-10-11 00:12:08 +00:00
Neil Brown
c7fe2431db
Added a test for the new outExprs pass
2007-10-10 23:46:58 +00:00
Neil Brown
d04adba875
Added a new SimplifyComms module, containing a new (currently dummy) pass, outExprs
2007-10-10 23:13:01 +00:00
Neil Brown
4d6d6dc555
Added a new function (checkTempVarTypes) to the TestUtil module
2007-10-10 23:11:35 +00:00
Neil Brown
a68ecfb24b
Added a new function (typeOfSpec) to the Types module
2007-10-10 23:10:46 +00:00
Neil Brown
cc2040679b
Changed the C and C++ backends to pass the input tests
2007-10-10 20:46:23 +00:00
Neil Brown
3f6fe50438
Added tests for (non-case-protocol) inputs in the C and C++ backends
2007-10-10 20:45:05 +00:00
Neil Brown
caa2a6164d
Added rules for getting and making the cgtests to the new Automake make system
2007-10-09 00:44:41 +00:00
Neil Brown
c9da8942d5
Changed the default compilation mode from being just occam/Rain->C/C++ compilation to being occam/Rain->binary ("all-in-one") compilation
2007-10-09 00:41:13 +00:00
Neil Brown
0bab7f1728
Changed the full compile-mode code, so that temporary files are deleted, even in case of error -- by using some monad trickery.
2007-10-09 00:19:49 +00:00
Neil Brown
6f8aeba867
Made sure that the three temporary files all have different stems, because otherwise there can be collisions between the object files of the C and occam.
2007-10-08 22:32:03 +00:00
Neil Brown
b0f5f6be77
Removed kroc-wrapper.occ, in favour of generating it as a temporary file for each all-in-one compilation
2007-10-08 22:24:02 +00:00
Neil Brown
32fa80be0f
Removed the kroc C wrapper file (kroc-wrapper-c.c) in favour of tacking it onto the end of each C file we create (to better facilitate all-in-one compilation)
2007-10-08 22:04:11 +00:00
Neil Brown
85fdfe7af7
Added a missing command to actually compile the C file produced by the post-analyse pass, and fixed the file extensions passed to the kroc link command
2007-10-08 21:54:12 +00:00
Neil Brown
c17cf0ce38
Added the first attempt at getting Tock to do an all-in-one compile, from occam/Rain all the way through into an executable binary
2007-10-08 21:18:07 +00:00
Neil Brown
7cee4e46fc
Changed tock to use autoconf/automake for its build process
...
The old Makefile has been removed, and configure.ac and Makefile.am added in its place, along with the four files (AUTHORS, ChangeLog, NEWS and README) that autoconf requires you to have (all currently blank). tock and tocktest can now be compiled, but the rules for cgtests and compiling the C and C++ files are currently missing.
2007-10-08 17:02:03 +00:00
Neil Brown
5b10466e68
Fixed the channel arrays (and abbreviations thereof) to have the correct types (correcting an earlier mistake), and added helper functions to the support headers for easy initialisation of the arrays
2007-10-07 23:03:15 +00:00
Neil Brown
4e6938e0ae
Fixed AnalyseAsm so that it can parse negative literals in the assembly code
2007-10-07 15:09:36 +00:00
Neil Brown
5450f77963
Added a test for genBytesIn in the C and C++ backends
2007-10-07 11:47:39 +00:00
Neil Brown
c1c1397f67
Added the occam_negate_ functions to the tock support header file, and defined a new macro that reduces some of the replicated macro calls
2007-10-07 11:07:20 +00:00
Neil Brown
9c4f977416
Added tests for channels carrying counted arrays of arrays for the C and C++ backends
2007-10-06 23:50:20 +00:00
Neil Brown
5e1e51ac15
Refactored the C++ genOutputItem to merge some duplicate code
2007-10-06 23:08:05 +00:00
Neil Brown
9af1ec78bb
Fixed all the tests for sending items in C++, and made the tests pass
2007-10-06 23:05:03 +00:00