Search the web
Sign In
New User? Sign Up
staticrecompilers · Static Binary Translation
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Want to share photos of your group with the world? Add a group photo to Flickr.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Messages 1 - 30 of 326   Oldest  |  < Older  |  Newer >  |  Newest
Messages: Simplify | Expand   (Group by Topic) Author Sort by Date ^
1
Well folks, we're at that period in the formation of a mailing list where we now have enough people to keep a conversation going, so I'll kick things off by...
Graham Toal
graham_toal
Offline Send Email
Dec 20, 2002
4:40 pm
2
Hi! I've been interested in static recompilation for a while. I first got the thought of writing one when I wanted to play Super Metroid on my Gamboy Advance,...
imikeyiz <staticbt@...>
imikeyiz
Offline Send Email
Dec 21, 2002
12:56 am
3
... got ... my ... the ... first ... cpu I ... this ... stage. ... etc ... work; ... understand ... Maybe we can help you with this. The fact that you would...
Graham Toal <gtoal@...>
graham_toal
Offline Send Email
Dec 21, 2002
6:11 am
4
Wow, thank you very much for that lengthy description. I'll be printing that out and storing it in my filing cabinet :) There are a couple of issues I think I...
imikeyiz <staticbt@...>
imikeyiz
Offline Send Email
Dec 21, 2002
4:23 pm
5
... The translator is the code which was based on a disassembler. Instead of printing out asm statements, it prints out the source code stolen from the...
Graham Toal <gtoal@...>
graham_toal
Offline Send Email
Dec 21, 2002
4:41 pm
6
... That's what should be revealed. When I wrote my 68K interpreter, I tested it by having it check against Starscream (which isn't by any means a sufficiently...
Bart
bart_trzynad...
Offline Send Email
Dec 21, 2002
9:29 pm
7
... translation ... executes ... I'm really curious as to how this static recompilation method works - is the entire program converted into one function/switch...
davesbit <davesbit@...>
davesbit
Offline Send Email
Dec 23, 2002
1:29 am
8
... Yes and no! ... it's like that, but initially with each instruction being emulated ... GCC does. I wasn't able to get CodeWarrior for the Palm to swallow ...
Graham Toal
graham_toal
Offline Send Email
Dec 23, 2002
5:06 am
9
... But it doesn't really eliminate redundant loads/stores at all. At least not the kind I'm thinking of. The code generator simply generates ugly load/stores...
Bart
bart_trzynad...
Offline Send Email
Dec 23, 2002
5:43 am
10
Do you reckon you could you do a switch like this?: switch (pc&0xff0000) { case 0x000000: switch (pc&0xffff00) { case 0x000200: switch (pc) { case 0x000206: //...
davesbit <davesbit@...>
davesbit
Offline Send Email
Dec 23, 2002
12:03 pm
11
We're discussing the implementation of this over in 'compilers101' but I wanted to show an example here so you understand why it's so relevant to static binary...
Graham Toal
graham_toal
Offline Send Email
Dec 23, 2002
11:15 pm
12
... unfortunately it does, I was careless; the first assignment to register_A was redundant... register_B = 0 cmp_old = 0xf00 cmp_new = 1 register_A = flag_C =...
Graham Toal
graham_toal
Offline Send Email
Dec 23, 2002
11:22 pm
13
Thing is, this is all compiler theory - wouldn't GCC spot all of this, making any 6502->C (elimate dead registers) C->x86 method pointless? Thing is, even so,...
davesbit <davesbit@...>
davesbit
Offline Send Email
Dec 24, 2002
1:52 am
14
... I'd be interested in seeing the kind of code GCC generates without any fancy optimizations done ahead of time and with the optimizations Graham was talking...
Bart
bart_trzynad...
Offline Send Email
Dec 24, 2002
3:08 am
15
... Ho ho! You've never done a dump of GCC's output, have you? It's not all they'd like you to think it is. For all the fancy techniques it tries to do, a...
Graham Toal <gtoal@...>
graham_toal
Offline Send Email
Dec 24, 2002
4:28 am
16
A passing thought... let's say we have a reasonably good compiler which eliminates dead stores and redundant loads, but only within basic blocks. In that...
Graham Toal <gtoal@...>
graham_toal
Offline Send Email
Dec 24, 2002
4:47 am
17
... <davesbit@y...>" ... 70's ... True GCC has been known to be a bit naff - MVSC is pretty good though from what I've seen, with x86 at least - has a few...
davesbit <davesbit@...>
davesbit
Offline Send Email
Dec 24, 2002
12:57 pm
18
Back to the subject of translating a program from native opcodes to C: I had mentioned that a significant source of overhead comes from things like the C/V/Z/N...
Graham Toal
graham_toal
Offline Send Email
Dec 31, 2002
9:35 pm
19
Although my personal concept of static recompilation is biased towards translating specific programs for a purpose - which means that I don't mind too much if...
Graham Toal
graham_toal
Offline Send Email
Dec 31, 2002
10:26 pm
20
We've already looked at how we can discard assignments to flag registers if they are not used before a subsequent assignment, and indeed we can handle long...
Graham Toal
graham_toal
Offline Send Email
Jan 5, 2003
8:05 pm
21
... I hate giving myself a challenge :-) Here's the code ... G #define DEBUG 1 // A test program to eliminate redundant code; does *not* do common //...
Graham Toal
graham_toal
Offline Send Email
Jan 6, 2003
1:24 am
22
... By the way this is quite typical of real code. I don't think I've posted it here before, so here: http://www.gtoal.com/athome/tailgunner/macros.h.html is...
Graham Toal
graham_toal
Offline Send Email
Jan 6, 2003
1:48 am
23
... I wasn't happy with some aspects of that code and have now cleaned it up considerably. In fact it now makes quite a nice demonstrator of the concept, and...
Graham Toal <gtoal@...>
graham_toal
Offline Send Email
Jan 7, 2003
6:47 am
24
I have written a first draft of a static binary translation HOWTO. This is just my personal method; it isn't the state of the art, and I had to force myself to...
Graham Toal <gtoal@...>
graham_toal
Offline Send Email
Jan 12, 2003
6:54 am
25
Wow I really appreciate your work, especially to bring this knowledge to people new to the subject (like me). Thanks :)...
imikeyiz <staticbt@...>
imikeyiz
Offline Send Email
Jan 12, 2003
12:43 pm
26
... You append statements to a list which allows you to perform some analysis before flushing it out, right? In my SH-2 recompiler, I had 2 different lists:...
Bart
bart_trzynad...
Offline Send Email
Jan 12, 2003
11:06 pm
27
The HOWTO has grown from 12 pages to 21 :-) http://www.gtoal.com/sbt/ G...
Graham Toal
graham_toal
Offline Send Email
Jan 13, 2003
6:01 am
28
... Very cool! I think you've taken a very good approach to this subject in your document. It's much more accessible than the academic texts (as you mention)...
Bart
bart_trzynad...
Offline Send Email
Jan 13, 2003
9:12 pm
29
Although my Cinematronics recompiler was rather messy, and took a few weeks to write, I got a itch to scratch tonight about doing a z80 recompiler (primarily...
Graham Toal
graham_toal
Offline Send Email
Apr 4, 2003
8:40 am
30
http://www.cs.ubc.ca/local/reading/proceedings/spe91- 95/spe/vol21/issue8/spe046cm.pdf Apparently what I've considered static binary translation is properly...
Graham Toal
graham_toal
Offline Send Email
Apr 15, 2003
3:02 am
Messages 1 - 30 of 326   Oldest  |  < Older  |  Newer >  |  Newest
Advanced
Add to My Yahoo!      XML What's This?

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help