|
Post by Pjot on Mar 19, 2013 19:42:05 GMT 1
I guess you can just run the binary itself, without using bash, e.g.:
BR, Peter
|
|
|
Post by linuph on Apr 4, 2013 7:29:56 GMT 1
Peter, I will look into that soon. I didn't check the forum lately nor did I any Bacon programming, since I have been working on improving the display quality of the XBOX. That involved mainly additional hardware modifications. Today I succeeded in running XDSL in 720P HDTV resolution. A huge improvement compared to S-video, of course, and a WOW-experience Now it makes even more sense to experiment with Bacon. More news from my side soon. BTW, great to have a new Bacon version! Thanks and congrats!
|
|
|
Post by linuph on Apr 14, 2013 11:50:32 GMT 1
Progress ;D I had to redo some hardware modifications. Now XDSL is running reliably on 720P HDTV resolution. As a note: XBMC4XBOX (previously XBMC) runs beautifully in 1080i HDTV resolution and original XBOX games can be run as usual. I downloaded BaCon v2 and hug.bac. Compiled bacon.bac: /bin/bash-3.2/bash bacon.bash -c gcc bacon.bac
Note: one needs to call in BASH 3.2 from a separate directory since XDSL (v 0.7 beta 5) only supports BASH 2.05. Then, to compile a bac script: bacon -c gcc -o -s -o -Os -o -fdata-sections -o -ffunction-sections -o -Wl,--gc-sections <script>This per advice of Peter/vovchick, except that I added -c gcc. A lot faster and smaller! However, I get a warning message: Warning: gc-sections option ignoredSo I don't know if the result is really optimized. Then compressed: upx -9 -o upxcompressed <script> mv upxcompressed <script>So far I successfully compiled 15puzzle.bac, gdf.bac, clock.bac. I noticed that the compiled bacon.bash does not offer to clean up the *.h *.c etc. files after a failed compilation. However, bacon.bash will delete any *.h *.c etc. file in its directory: I made the mistake of putting bacon in /usr/local/bin and lost all *.h *.c etc. files, crashing XDSL (anyway, I think that's what happened... : . So I put bacon in its own unique directory, as I should have done from the beginning... XDSL installation: one needs to download/install from the DSL repository: - gnu-utils.dsl - gcc-2.95 - gcc1.dsl - gcc1-with-libs.dsl - gtk2-0705.dsl - gtk+-2.12.9.uci - bash 3.2.ucl - bacon.bash (v2) - hug.bac Question: I compiled hug.bac to further shorten compilation time and file size but don't know how to use it in a bac script. Advice?
|
|
|
Post by alexfish on Apr 14, 2013 12:44:56 GMT 1
Hi linuph for using hug.so there is a small script here www.basic-converter.org/hug_imports.bacthen need to put aline at the head of the .bac file INCLUDE "hug_imports.bac"
in Bacon there is a makedir + delete recursive command possible a small script using SYSTEM command or EXEC$ EG MAKEDIR "/tmp/mydir/is/here" compile$=CONCAT$("bacon -d /tmp/mydir/is/here", " my.bac")
SYSTEM compile$
DELETE RECURSIVE "/tmp/mydir/is/here"
Not sure about the warnings HTH Alex
|
|
|
Post by linuph on May 1, 2013 6:27:36 GMT 1
Some progress:
The --gc-sections option is not supported on my system. This causes a compiler warning:
Warning: gc-sections option ignored
Any temporary *.c *.h etc. files are not removed (as if an error was detected). I now use the --no-gc-sections in stead:
bacon -c gcc -o -s -o -Os -o -fdata-sections -ffunction-sections -o -Wl,--no-gc-sections
No warnings or errors and, as a bonus, executables are a couple of K smaller (e.g. qix is now ~28K iso ~34K previously).
Including 'hug_imports.bac' doesn't work yet for me: I get a conversion error. I'll find out what's up....
|
|