-
Notifications
You must be signed in to change notification settings - Fork 1
Target Code Decorator
jdfrens edited this page Sep 12, 2010
·
2 revisions
True assembly language targets may require a lot of overhead in terms of the code generated (e.g., printf stubs for PPC code). It might be nice to be able to specify just the most interesting code in a CIAT test file and allow a “decorator” to fill in the rest.
As a pitiful example, I could have a PIR version which would allow me to write just this for PIR program:
print 5And the PIR decorator would tack the
.sub mainand
print “\n” .endto the beginning and end of the target-code output. Again, this is silly for this PIR code, but certainly for PPC (and any real assembly code) it could be useful from the beginning.