Codepressor App recompile for 32Bit anyone ?
Kuemmel (439) 384 posts |
Any chance that somebody with more knowledge about using C-Compilers on the BeagleBoard than me could recompile an old App from Topix → Codepressor for me ? The full source seems to be supplied… |
Rik Griffin (98) 264 posts |
Try this: http://www.btinternet.com/~rik.griffin/cp103.zip All I did was recompile using cc 5.69 and link with 32 bit OSLib. I had to make minor changes to some header files to #include correct ANSI stuff instead of gcc specific ones. No idea if the resulting app works correctly. As an aside though – why use this rather antiquated and non standard binary compressor? Squeeze actually seems to do a better job, from what I can see! |
Kuemmel (439) 384 posts |
Thanks for trying! Unfortunately it doesn’t work. The compression seems to work, but the compressed app doesn’t run properly. It crashes or reports internal error. I couldn’t figure out the problem. It just occurred to me that your output app file is about 26 KByte only, the original app is 94 KByte…could there be something left out ? Why I use it…may be nostalgia and efficiency. It’s an executable compressor mostly aimed for size demo coding, like 1/2/4/8 KByte size of executable code. I don’t know Squeeze (any link to download) ? Is it also and executable compressor ? |
Sprow (202) 1158 posts |
Yeah – you’ll need to look a bit harder than just recompiling it, the assembler code is littered with MOVS PC,LR stuff, and many of the SWI calls assume flags are preserved (because the instructions immediately following the SWI uses the same condition code). |
Rik Griffin (98) 264 posts |
Squeeze is the executable compressor bundled with the RISC OS C compiler. SO if you don’t have the ROOL compiler, you may not have it. I wonder if it’s covered by the same licence as the compiler itself – perhaps it could be added to the downloadable tools? Anyway, the source code for CodePressor that I put on my web site compiles with Nocroft cc, so if anyone wants to try and fix the non-32 bit compatibility, that might be a good place to start. The difference in binary size is probably due to the original not using the SharedCLibrary…? |
Jeffrey Lee (213) 6048 posts |
I don’t think squeeze is available from the downloads page, but you can grab it and a few other tools straight from the CVS viewer: http://www.riscosopen.org/viewer/view/mixed/RiscOS/Library/Acorn/ |
Kuemmel (439) 384 posts |
@Jeffrey: I downloaded squeeze from there but it reports an “Abort on instruction fetch &ff0c8018”. Anybody got a working version on the BB ? About the syntax I didn’t find docs. Is it just like “squeeze input_file output_file” ? @Sprow: You’re right. I didn’t look much in the code, thought it’s all in C, now I see there’s lots of inline assembly stuff. I guess I got to google now a bit regarding making 26bit code 32bit compatible. Are there any good links or even tools for that ? |
Trevor Johnson (329) 1645 posts |
Ditto and no.
Do you mean in addition to the Iyonix guidance and ARMv7 compatibility primer? |
David Pitt (102) 743 posts |
That ‘squeeze’ looks like garbage! squeeze vsn 5.10 in the ROOL Tools seems OK on an ARMini. |
Kuemmel (439) 384 posts |
@David: Can you give me a link for download or send me the app (I guess there’s no copyright issue, when it’s also on riscosopen). Here’s my e-mail address: michael.kuebel ED googlemail.com |