public
/
ack.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7b745d6
)
Added provision to print (possibly in mach.h defined) modhead
author
keie
<none@none>
Tue, 16 Apr 1985 16:14:55 +0000
(16:14 +0000)
committer
keie
<none@none>
Tue, 16 Apr 1985 16:14:55 +0000
(16:14 +0000)
on the output assmble file as the very first text.
mach/proto/cg/fillem.c
patch
|
blob
|
history
mach/proto/cg/main.c
patch
|
blob
|
history
diff --git
a/mach/proto/cg/fillem.c
b/mach/proto/cg/fillem.c
index
074d445
..
c4bf21d
100644
(file)
--- a/
mach/proto/cg/fillem.c
+++ b/
mach/proto/cg/fillem.c
@@
-111,6
+111,12
@@
in_init(filename) char *filename; {
error("Bad format %s",filename);
}
+in_start() {
+#ifdef modhead
+ fprintf(codefile,"%s",modhead) ;
+#endif
+}
+
in_finish() {
}
diff --git
a/mach/proto/cg/main.c
b/mach/proto/cg/main.c
index
08d5c46
..
dc1c511
100644
(file)
--- a/
mach/proto/cg/main.c
+++ b/
mach/proto/cg/main.c
@@
-67,6
+67,7
@@
main(argc,argv) char **argv; {
error("Usage: %s EMfile [ asfile ]",progname);
in_init(argv[0]);
out_init(argv[1]);
+ in_start();
codegen(startupcode,maxply,TRUE,MAXINT,0);
in_finish();
if (!endofprog)