other files needed for native backend

Matthew Fluet fluet@CS.Cornell.EDU
Fri, 13 Oct 2000 22:23:57 -0400 (EDT)


  This message is in MIME format.  The first part should be readable text,
  while the remaining parts are likely unreadable without MIME-aware tools.
  Send mail to mime@docserver.cac.washington.edu for more info.

---559023410-1804928587-971490237=:24273
Content-Type: TEXT/PLAIN; charset=US-ASCII


Here's x86codegen.h.  There are a couple of new things in here (a few
static memory locations for temporaries) and also some inline assembly to
do the initial jump to the main label.  That's a little nicer than the
quick little trampoline that was in the old version.

> 
> Matthew, 
> 
> Do I also need a new version of x86-codegen.h?
> 
> Did you change any other runtime files?
> 


---559023410-1804928587-971490237=:24273
Content-Type: TEXT/PLAIN; charset=US-ASCII; name="x86codegen.h"
Content-Transfer-Encoding: BASE64
Content-ID: <Pine.SOL.3.95.1001013222357.24273D@hoho.cs.cornell.edu>
Content-Description: 

I2lmbmRlZiBfWDg2Q09ERUdFTl9IXw0KI2RlZmluZSBfWDg2Q09ERUdFTl9IXw0KDQpNTHRvbl9z
dGF0ZSBtbHRvblN0YXRlOw0KDQojZGVmaW5lIEdsb2JhbHMoYywgZCwgaSwgcCwgdSwgbnIpCQkJ
CSAgICAgICAJXA0KCXdvcmQgcmFUZW1wOwkJCQkJCQlcDQoJc3RydWN0IEdDX3N0YXRlIGdjU3Rh
dGU7CQkJCSAgICAgICAJXA0KCXdvcmQgY19zdGFja1A7CQkJCQkJCVwNCgl3b3JkIGxpbWl0Q2hl
Y2tUZW1wOwkJCQkJCVwNCgl3b3JkIGFycmF5QWxsb2NhdGVUZW1wOwkJCQkJCVwNCgl3b3JkIGFy
cmF5QWxsb2NhdGVMb29wVGVtcDsgICAgCQkJCQlcDQoJd29yZCBpbnRJbmZUZW1wOwkJCQkJCVwN
Cgl3b3JkIHRocmVhZFRlbXA7CQkJCQkJXA0KCXdvcmQgc3RhdHVzVGVtcDsJCQkJCQlcDQoJd29y
ZCBmaWxlVGVtcDsJCQkJCQkJXA0KCXdvcmQgYXBwbHlGRlRlbXA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