tock-mirror/backends
Neil Brown ca207f7291 Quickly implemented the first version of a revamp of the genVariable code in the C backend
Surprisingly, the generated code seems to be compiled by GCC without warnings.  Array subscripts are currently unimplemented (a star, i.e. equivalent of subscript 0) is used wherever there should be a subscript.

The new mechanism is based on working out the C type of the original variable/abbrev-mode, the C type of the desired variable/abbrev-mode, and works out how many *s or &s to insert to coerce it to the right type.
2009-03-21 18:43:32 +00:00
..
AnalyseAsm.hs Added a value to indicate what type a warning is (to support future configurability) and streamlined the warning functions 2008-11-13 15:36:22 +00:00
AnalyseAsmTest.hs In AnalyseAsm, ignore labels that contain "." anywhere. 2008-04-06 15:31:28 +00:00
BackendPasses.hs Added an AllSizesVariable item to the AST so that the backend inserts the right code for mobiles and non-mobiles 2009-03-20 11:31:14 +00:00
BackendPassesTest.hs Fixed some of the tests, and added another testcase for array passing, based on one of Carl's examples 2009-03-20 12:59:16 +00:00
GenerateC.hs Quickly implemented the first version of a revamp of the genVariable code in the C backend 2009-03-21 18:43:32 +00:00
GenerateCBased.hs Quickly implemented the first version of a revamp of the genVariable code in the C backend 2009-03-21 18:43:32 +00:00
GenerateCPPCSP.hs Changed the channel-output code generation so that it knows the desired type being sent 2009-03-20 11:37:52 +00:00
GenerateCTest.hs Fixed some of the tests, and added another testcase for array passing, based on one of Carl's examples 2009-03-20 12:59:16 +00:00
TLP.hs Add kyb as another possible name for the keyboard channel. 2009-03-21 15:22:58 +00:00