tock-mirror/backends
Neil Brown e457d82f0c Changed FUNCTIONs and PROCs to have optional bodies, and put all the externals into the AST (without bodies)
This may seem like an odd change, but it simplifies the logic a lot.  I kept having problems with passes not operating on externals (e.g. functions-to-procs, adding array sizes, constant folding in array dimensions) and adding a special case every time to also process the externals was getting silly.

Putting the externals in the AST therefore made sense, but I didn't want to just add dummy bodies as this would cause them to throw up errors (e.g. in the type-checking for functions).  So I turned the bodies into a Maybe type, and that has worked out well.

I also stopped storing the formals in csExternals (since they are now in csNames, and the tree), which streamlined that nicely, and stopped me having to keep them up to date.
2009-04-04 14:56:35 +00:00
..
AnalyseAsm.hs Reworked how stack sizes are calculated, and changed how we use them in the build process 2009-04-03 12:24:53 +00:00
AnalyseAsmTest.hs In AnalyseAsm, ignore labels that contain "." anywhere. 2008-04-06 15:31:28 +00:00
BackendPasses.hs Changed FUNCTIONs and PROCs to have optional bodies, and put all the externals into the AST (without bodies) 2009-04-04 14:56:35 +00:00
BackendPassesTest.hs A mega-patch that gets tocktest compiling again 2009-03-31 17:56:56 +00:00
GenerateC.hs Changed FUNCTIONs and PROCs to have optional bodies, and put all the externals into the AST (without bodies) 2009-04-04 14:56:35 +00:00
GenerateCBased.hs Added code to put static before every identifier that is not being exported, to avoid collisions between occam files 2009-04-01 19:50:15 +00:00
GenerateCPPCSP.hs Changed FUNCTIONs and PROCs to have optional bodies, and put all the externals into the AST (without bodies) 2009-04-04 14:56:35 +00:00
GenerateCTest.hs Fixed the C tests to compile again after the most recent changes 2009-04-01 19:58:47 +00:00
TLP.hs Add kyb as another possible name for the keyboard channel. 2009-03-21 15:22:58 +00:00