Help Compiling TOS 2.06/2.08/3.06 in any language

GFA, ASM, STOS, ...

Moderators: exxos, simonsunnyboy, Mug UK, Zorro 2, Moderator Team

ThorstenOtto
Obsessive compulsive Atari behavior
Obsessive compulsive Atari behavior
Posts: 129
Joined: Sun Aug 03, 2014 5:54 pm

Re: Help Compiling TOS 2.06/2.08/3.06 in any language

Postby ThorstenOtto » Mon Mar 13, 2017 4:39 pm

troed wrote:Success!

My STE has now built an identical TOS 3.06 DE image from scratch


Nice ;) How long does it run there?

I used COMMAND.TOS as included in the archive.


Thats also an option. It's rather old though, and probably has still lots of bugs that i didn't have the time to fix yet. But you usually only need it to cd to some directory and run make.

Again, many thanks for all your work Thorsten :)


You're welcome :)

Thorsten

User avatar
troed
Atari God
Atari God
Posts: 1182
Joined: Mon Apr 30, 2012 6:20 pm
Location: Sweden

Re: Help Compiling TOS 2.06/2.08/3.06 in any language

Postby troed » Mon Mar 13, 2017 4:57 pm

ThorstenOtto wrote:Nice ;) How long does it run there?


I didn't time it but I estimate around 2 hours. I'll do a make distclean and re-make later and check :) For fun I'll also let the Mega STE do it (both using USB flash memory as harddisk through alanh's Unicorn so it'll only be the pure CPU difference).

I think we have TTs and Milans in the thread as well so it'll be fun to compare ;)

/Troed

ThorstenOtto
Obsessive compulsive Atari behavior
Obsessive compulsive Atari behavior
Posts: 129
Joined: Sun Aug 03, 2014 5:54 pm

Re: Help Compiling TOS 2.06/2.08/3.06 in any language

Postby ThorstenOtto » Mon Mar 13, 2017 5:18 pm

troed wrote:I didn't time it but I estimate around 2 hours.


*gulp*

I usually use STonX, running on the hosts filesystem. There it takes ~1min.

With the last fixes, it also seems to run under MiNT now. With aranym-jit, it takes ~11 sec.

ijor
Hardware Guru
Hardware Guru
Posts: 3031
Joined: Sat May 29, 2004 7:52 pm
Contact:

Re: Help Compiling TOS 2.06/2.08/3.06 in any language

Postby ijor » Mon Mar 13, 2017 8:15 pm

troed wrote:I didn't time it but I estimate around 2 hours. I'll do a make distclean and re-make later and check :) For fun I'll also let the Mega STE do it (both using USB flash memory as harddisk through alanh's Unicorn so it'll only be the pure CPU difference).


You like to "train" your STs. :) Why not under emulation using native (not hosted) partitions?

User avatar
troed
Atari God
Atari God
Posts: 1182
Joined: Mon Apr 30, 2012 6:20 pm
Location: Sweden

Re: Help Compiling TOS 2.06/2.08/3.06 in any language

Postby troed » Mon Mar 13, 2017 8:49 pm

ijor wrote:
troed wrote:I didn't time it but I estimate around 2 hours. I'll do a make distclean and re-make later and check :) For fun I'll also let the Mega STE do it (both using USB flash memory as harddisk through alanh's Unicorn so it'll only be the pure CPU difference).


You like to "train" your STs. :) Why not under emulation using native (not hosted) partitions?


Hey, they should be used for something besides just being on my desk ;)

User avatar
Arne
Captain Atari
Captain Atari
Posts: 397
Joined: Thu Nov 01, 2007 10:01 am

Re: Help Compiling TOS 2.06/2.08/3.06 in any language

Postby Arne » Wed Mar 15, 2017 4:26 pm

Could someone please upload the whole archive with patched AR68.TTP?
Image

ThorstenOtto
Obsessive compulsive Atari behavior
Obsessive compulsive Atari behavior
Posts: 129
Joined: Sun Aug 03, 2014 5:54 pm

Re: Help Compiling TOS 2.06/2.08/3.06 in any language

Postby ThorstenOtto » Wed Mar 15, 2017 4:40 pm

Arne wrote:Could someone please upload the whole archive with patched AR68.TTP?


Sure. Same link as before. Did you make any progress?

bocke
Atarian
Atarian
Posts: 3
Joined: Wed Sep 14, 2016 4:09 pm

Re: Help Compiling TOS 2.06/2.08/3.06 in any language

Postby bocke » Wed Mar 15, 2017 6:09 pm

Sorry guys. Wrong topic. :)
Last edited by bocke on Thu May 11, 2017 5:05 pm, edited 1 time in total.

User avatar
Arne
Captain Atari
Captain Atari
Posts: 397
Joined: Thu Nov 01, 2007 10:01 am

Re: Help Compiling TOS 2.06/2.08/3.06 in any language

Postby Arne » Wed Mar 15, 2017 6:49 pm

With your last archive I get this:
IMG_0683.JPG
You do not have the required permissions to view the files attached to this post.
Image

User avatar
troed
Atari God
Atari God
Posts: 1182
Joined: Mon Apr 30, 2012 6:20 pm
Location: Sweden

Re: Help Compiling TOS 2.06/2.08/3.06 in any language

Postby troed » Wed Mar 15, 2017 6:54 pm

Arne wrote:With your last archive I get this:
IMG_0683.JPG


FWIW, I had file not found issues with Mupfel but it worked fine with the included command.tos shell.

joska
Hardware Guru
Hardware Guru
Posts: 3574
Joined: Tue Oct 30, 2007 2:55 pm
Location: Florø, Norway
Contact:

Re: Help Compiling TOS 2.06/2.08/3.06 in any language

Postby joska » Wed Mar 15, 2017 7:44 pm

ijor wrote:Why not under emulation using native (not hosted) partitions?


Why, when you have the real thing?
Jo Even

Firebee - Falcon060 - Milan060 - Falcon040 - MIST - Mega ST - STM - STE - Amiga 600 - Sharp MZ700 - MSX - Amstrad CPC - C64

ijor
Hardware Guru
Hardware Guru
Posts: 3031
Joined: Sat May 29, 2004 7:52 pm
Contact:

Re: Help Compiling TOS 2.06/2.08/3.06 in any language

Postby ijor » Wed Mar 15, 2017 9:22 pm

joska wrote:
ijor wrote:Why not under emulation using native (not hosted) partitions?

Why, when you have the real thing?


Well, in a case like this, just a test that takes hours on real hardware that can take minutes under emulation ...

joska
Hardware Guru
Hardware Guru
Posts: 3574
Joined: Tue Oct 30, 2007 2:55 pm
Location: Florø, Norway
Contact:

Re: Help Compiling TOS 2.06/2.08/3.06 in any language

Postby joska » Wed Mar 15, 2017 9:32 pm

Waiting is a part of the retro experience :)
Jo Even

Firebee - Falcon060 - Milan060 - Falcon040 - MIST - Mega ST - STM - STE - Amiga 600 - Sharp MZ700 - MSX - Amstrad CPC - C64

ijor
Hardware Guru
Hardware Guru
Posts: 3031
Joined: Sat May 29, 2004 7:52 pm
Contact:

Re: Help Compiling TOS 2.06/2.08/3.06 in any language

Postby ijor » Wed Mar 15, 2017 10:27 pm

joska wrote:Waiting is a part of the retro experience :)


That's absolutely true :)

ThorstenOtto
Obsessive compulsive Atari behavior
Obsessive compulsive Atari behavior
Posts: 129
Joined: Sun Aug 03, 2014 5:54 pm

Re: Help Compiling TOS 2.06/2.08/3.06 in any language

Postby ThorstenOtto » Thu Mar 16, 2017 7:26 am

Arne wrote:With your last archive I get this:
IMG_0683.JPG


Looks like the same error you already got. Could you pls try "make -d", that should print the reason why make tries to rebuild mkbininc.ttp. You can also try to apply:

Code: Select all

--- a/Makefile.cmn
+++ b/Makefile.cmn
@@ -48,10 +48,10 @@ MKDIR_P = $(MKDIR) -p
 SED   = ${BIN}sed
 BC    = ${BIN}bc
 
-CMP      = $(top_srcdir)/tools/cmprom$(BUILD_EXEEXT)
-MKGLUE   = $(top_srcdir)/tools/newglue$(BUILD_EXEEXT)
-MKBININC = $(top_srcdir)/tools/mkbininc$(BUILD_EXEEXT)
-MKROM    = $(top_srcdir)/tools/mkrom$(BUILD_EXEEXT)
+CMP      = $(top_srcdir)$(BS)tools$(BS)cmprom$(BUILD_EXEEXT)
+MKGLUE   = $(top_srcdir)$(BS)tools$(BS)newglue$(BUILD_EXEEXT)
+MKBININC = $(top_srcdir)$(BS)tools$(BS)mkbininc$(BUILD_EXEEXT)
+MKROM    = $(top_srcdir)$(BS)tools$(BS)mkrom$(BUILD_EXEEXT)
 
 # Wether to run the optimizer pass.
 # the default is evaluated by RUN_OPTIMIZE_,


to the toplevel Makefile.cmn.

User avatar
Arne
Captain Atari
Captain Atari
Posts: 397
Joined: Thu Nov 01, 2007 10:01 am

Re: Help Compiling TOS 2.06/2.08/3.06 in any language

Postby Arne » Thu Mar 16, 2017 11:42 am

ThorstenOtto wrote:Looks like the same error you already got. Could you pls try "make -d", that should print the reason why make tries to rebuild mkbininc.ttp.

Will do - in the evening.

ThorstenOtto wrote:You can also try to apply:

Code: Select all

--- a/Makefile.cmn
+++ b/Makefile.cmn
@@ -48,10 +48,10 @@ MKDIR_P = $(MKDIR) -p
 SED   = ${BIN}sed
 BC    = ${BIN}bc
 
-CMP      = $(top_srcdir)/tools/cmprom$(BUILD_EXEEXT)
-MKGLUE   = $(top_srcdir)/tools/newglue$(BUILD_EXEEXT)
-MKBININC = $(top_srcdir)/tools/mkbininc$(BUILD_EXEEXT)
-MKROM    = $(top_srcdir)/tools/mkrom$(BUILD_EXEEXT)
+CMP      = $(top_srcdir)$(BS)tools$(BS)cmprom$(BUILD_EXEEXT)
+MKGLUE   = $(top_srcdir)$(BS)tools$(BS)newglue$(BUILD_EXEEXT)
+MKBININC = $(top_srcdir)$(BS)tools$(BS)mkbininc$(BUILD_EXEEXT)
+MKROM    = $(top_srcdir)$(BS)tools$(BS)mkrom$(BUILD_EXEEXT)
 
 # Wether to run the optimizer pass.
 # the default is evaluated by RUN_OPTIMIZE_,


to the toplevel Makefile.cmn.

That's some kind of diff syntax? What do I need to apply these TXT patches?
Image

ThorstenOtto
Obsessive compulsive Atari behavior
Obsessive compulsive Atari behavior
Posts: 129
Joined: Sun Aug 03, 2014 5:54 pm

Re: Help Compiling TOS 2.06/2.08/3.06 in any language

Postby ThorstenOtto » Thu Mar 16, 2017 4:14 pm

Arne wrote:That's some kind of diff syntax? What do I need to apply these TXT patches?


Yes. You need the "patch" utility to apply that automatically. I think i got mine from http://sparemint.org/sparemint/RPMS/m68 ... 8kmint.rpm but thats a rpm package, you might have difficulties to extract that on single-tos ;) You can also just replace "/" by "$(BS)" with a texteditor in those 4 lines.

User avatar
Arne
Captain Atari
Captain Atari
Posts: 397
Joined: Thu Nov 01, 2007 10:01 am

Re: Help Compiling TOS 2.06/2.08/3.06 in any language

Postby Arne » Fri Mar 17, 2017 9:45 am

We've got a winner!
So the problem on my TT was its drained battery i.e. the .C file was always newer than the compiled/linked .TTP.

Thanks Thorsten!
Image

ThorstenOtto
Obsessive compulsive Atari behavior
Obsessive compulsive Atari behavior
Posts: 129
Joined: Sun Aug 03, 2014 5:54 pm

Re: Help Compiling TOS 2.06/2.08/3.06 in any language

Postby ThorstenOtto » Fri Mar 17, 2017 3:51 pm

Arne wrote:We've got a winner!


nice ;)

So the problem on my TT was its drained battery i.e. the .C file was always newer than the compiled/linked .TTP.


Oh yes. Make doesn't work very well without correct timestamps ;)

mikro
Atari God
Atari God
Posts: 1263
Joined: Sat Sep 10, 2005 11:11 am
Location: Brisbane, Queensland, Australia
Contact:

Re: Help Compiling TOS 2.06/2.08/3.06 in any language

Postby mikro » Sat Mar 18, 2017 1:53 am

Couldn't resist to try this out. I confirm it works and there's even no need for that mv.ttp and sed.ttp, works literally out of the box.

troed wrote:Replicated with Hatari on my Mac, just now. These are the steps I needed when starting completely from scratch:

1) Download the tos-archive from this thread, unpack as "tos" in your gemdos-root folder. Delete all GNUmakefile-files.
1.5) Open Makefile.common, find the line which redirects to NUL: and remove the redirect.
2) Download mupfel and mupfel-tools. Run the self-extracting mupfel tools archive so you get a bin-folder
3) Copy sed.ttp and mv.ttp from crashman's linked BIN-catalogue into your own mupfel-tools bin.
4) Boot Hatari. I used TOS 1.04. Map your root folder as GEMDOS drive.
5) Run mupfel.ttp
6) Type PATH="\bin;\tos\bin" - important, backslash, not slash
7) Type cd tos
8) Type make

... fast-forward in Hatari, this will take some time. Resulting TOS image tested working in Hatari.

Thanks @ThorstenOtto!!!

/Troed

ThorstenOtto
Obsessive compulsive Atari behavior
Obsessive compulsive Atari behavior
Posts: 129
Joined: Sun Aug 03, 2014 5:54 pm

Re: Help Compiling TOS 2.06/2.08/3.06 in any language

Postby ThorstenOtto » Sat Mar 18, 2017 9:31 am

mikro wrote:Couldn't resist to try this out. I confirm it works


Thanks for the info :)

and there's even no need for that mv.ttp and sed.ttp, works literally out of the box.


mv is not needed because make uses a builtin version if it is the first command, and does not use any options it does not handle, like -b or -i. For any options that are unknown, or not handled, the external command would be invoked. sed is still needed if you want to recompile the compiler.

User avatar
Arne
Captain Atari
Captain Atari
Posts: 397
Joined: Thu Nov 01, 2007 10:01 am

Re: Help Compiling TOS 2.06/2.08/3.06 in any language

Postby Arne » Wed Mar 22, 2017 5:51 pm

I finally found a RAM-Disk that can allocate Alt. RAM and checked the turn-around time: 34min. on a TT.
Image

mikro
Atari God
Atari God
Posts: 1263
Joined: Sat Sep 10, 2005 11:11 am
Location: Brisbane, Queensland, Australia
Contact:

Re: Help Compiling TOS 2.06/2.08/3.06 in any language

Postby mikro » Wed Mar 22, 2017 10:39 pm

Will be fun to compare on CT60. ;-) Can you post the ram disk app?

ThorstenOtto
Obsessive compulsive Atari behavior
Obsessive compulsive Atari behavior
Posts: 129
Joined: Sun Aug 03, 2014 5:54 pm

Re: Help Compiling TOS 2.06/2.08/3.06 in any language

Postby ThorstenOtto » Thu Mar 23, 2017 8:42 am

Arne wrote:I finally found a RAM-Disk that can allocate Alt. RAM and checked the turn-around time: 34min. on a TT.


That sounds better than 2h ;) Did you put everything there, including sources, or only the temporary files? And what ramdisk was that? Maybe i can add a hint to it in the README next time.

User avatar
Arne
Captain Atari
Captain Atari
Posts: 397
Joined: Thu Nov 01, 2007 10:01 am

Re: Help Compiling TOS 2.06/2.08/3.06 in any language

Postby Arne » Thu Mar 23, 2017 12:58 pm

ThorstenOtto wrote:Did you put everything there, including sources, or only the temporary files?

Everything except compiler-sources. 9-10 MB IIRC Copying done with Kobold in < 1min.
ThorstenOtto wrote:And what ramdisk was that?

http://archive.3rz.org/MAUS-OEPT/FR/st/TRUEDI22.LZH
Set it to 16MB, Mxalloc PrgFlags were already set to AltRAM.
Image


Social Media

     

Return to “Coding”

Who is online

Users browsing this forum: No registered users and 1 guest