Re: [hatari-devel] compiling with ahcc from Hatari and command line ?

[ Thread Index | Date Index | More lists.tuxfamily.org/hatari-devel Archives ]


Le 10/09/2023 à 23:53, Eero Tamminen a écrit :
Hi,

On 10.9.2023 16.33, Nicolas Pomarède wrote:
I'd like to check a change in some program included in Hatari's test directory. .c files are compiled with ahcc and I wondered if there's a way to run the compilation from linux through hatari using the .TTP binary maybe ?

for example I'd like to change/compile "scc_ser.c" from tests/serial and it would be much faster if I could do it from my pc with command line and not interacting with editor/menus.

Assuming AHCC, project file and sources are in same directory, you can use something like this: $ hatari-prg-args -m --cpulevel 3 --trace os_base  -- ahcc_p.ttp mfp_ser.prj

(With AHCC ST version, you can "drop --cpulevel 3".)


Hi

thanks for the infos, it worked.

So, I added a sleep to scc_ser.c in main() :

        Super(sp);

+        sleep(2);

        return 0;

but when I run the test in test/serial I get an error :

Test FAILED. Hatari exited with status 1.
ERROR: Unhandled exception!
<end of output>

This seems to be because "sleep" calls supexec and the test runs with "--tos none" using a faketos that will not support gemdos/bios/... calls.

Any idea how it could be changed ? Add a "minimal" sleep function that uses the vbl counter at $466 or maybe run test/serial with a tos != none ?

Nicolas



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/