You will not be able to post if you are still using Microsoft email addresses such as Hotmail etc
See here for more information viewtopic.php?f=20&t=7296
DO NOT USE DEVICES WHERE THE IP CHANGES CONSTANTLY!
At this time it is unfortunately not possible to white list users when your IP changes constantly.
You may inadvertently get banned because a previous attack may have used the IP you are now on.
So I suggest people only use fixed IP address devices until I can think of a solution for this problem!

Different compilers for compiling TOS ?

General Discussion, STOS.
User avatar
exxos
Site Admin
Site Admin
Posts: 27278
Joined: Wed Aug 16, 2017 11:19 pm
Location: UK
Contact:

Re: Different compilers for compiling TOS ?

Post by exxos »

On to the next problem then..

Capture.PNG
Capture.PNG (18.83 KiB) Viewed 384 times

EDIT:
ah...

666.PNG
666.PNG (13.9 KiB) Viewed 384 times

:ball:

EDIT:
777.PNG
777.PNG (22.88 KiB) Viewed 380 times
User avatar
exxos
Site Admin
Site Admin
Posts: 27278
Joined: Wed Aug 16, 2017 11:19 pm
Location: UK
Contact:

Re: Different compilers for compiling TOS ?

Post by exxos »

:sigh:

1.PNG
1.PNG (32.57 KiB) Viewed 378 times
2.PNG
2.PNG (52.43 KiB) Viewed 378 times
3.PNG
3.PNG (44.88 KiB) Viewed 378 times

So searching through the original installer I found it..

rt1.PNG
rt1.PNG (86.78 KiB) Viewed 375 times
rt2.PNG
rt2.PNG (42.59 KiB) Viewed 373 times
00.PNG
00.PNG (32.95 KiB) Viewed 372 times
000.PNG
000.PNG (20.46 KiB) Viewed 371 times
0000.PNG
0000.PNG (42.27 KiB) Viewed 371 times

Now what ? :lol:

xx.PNG
xx.PNG (11.05 KiB) Viewed 367 times
User avatar
exxos
Site Admin
Site Admin
Posts: 27278
Joined: Wed Aug 16, 2017 11:19 pm
Location: UK
Contact:

Re: Different compilers for compiling TOS ?

Post by exxos »

What a faff! had to install nano... wget installs but does nothing at all.

Did a test program:

Code: Select all

mkdir ~/atari_projects
cd ~/atari_projects
 nano hello.c
 

Code: Select all

#include <osbind.h>
int main() {
    Cconws("Hello, Atari ST from Cygwin!\r\n");
    Cconin(); // Wait for keypress
    return 0;
}

Code: Select all

m68k-atari-mint-gcc -m68000 -I/opt/cross-mint/m68k-atari-mint/include -o hello.tos hello.c

:girldance: :cheer: :girldance: :cheer:

Capture.PNG
Capture.PNG (88.75 KiB) Viewed 358 times

So how the heck do I now compile the operating system :lol: :roll:

:dizzy:


EDIT:

Well MAKE doesn't seem to do anything, silent output like WGET. Been working though with Grok. We both clueless now.. So no idea.. :(
User avatar
stephen_usher
Site sponsor
Site sponsor
Posts: 6999
Joined: Mon Nov 13, 2017 7:19 pm
Location: Oxford, UK.
Contact:

Re: Different compilers for compiling TOS ?

Post by stephen_usher »

Goodness knows how the original build process will work with GNU C. You'll need the flag -mshort so that ints are 16 bits rather than 32 bits for a start.
Intro retro computers since before they were retro...
ZX81->Spectrum->Memotech MTX->Sinclair QL->520STM->BBC Micro->TT030->PCs & Sun Workstations.
Added code to the MiNT kernel (still there the last time I checked) + put together MiNTOS.
Collection now with added Macs, Amigas, Suns and Acorns.
User avatar
exxos
Site Admin
Site Admin
Posts: 27278
Joined: Wed Aug 16, 2017 11:19 pm
Location: UK
Contact:

Re: Different compilers for compiling TOS ?

Post by exxos »

stephen_usher wrote: Fri Oct 24, 2025 2:32 pm Goodness knows how the original build process will work with GNU C. You'll need the flag -mshort so that ints are 16 bits rather than 32 bits for a start.
Yep, there could be a whole bunch of stuff wrong for all I know. Not really worth the time screwing around with it all. I'll stick to what I was doing originally as it all works.
User avatar
Badwolf
Site sponsor
Site sponsor
Posts: 2977
Joined: Tue Nov 19, 2019 12:09 pm

Re: Different compilers for compiling TOS ?

Post by Badwolf »

exxos wrote: Fri Oct 24, 2025 1:19 pm So how the heck do I now compile the operating system :lol: :roll:
I've just tried the process from scratch on my box:-

Code: Select all

mkdir /tmp/osbuildtest
cd /tmp/osbuildtest
Choose a path appropriate for you.

Code: Select all

git clone https://github.com/th-otto/tos3x.git
Git will probably be available as a cygwin package if it's not already installed. You could do it with a curl/wget instead.

Code: Select all

cd tos3x
Pretty self-explanatory.

Code: Select all

make
And it just worked.

Code: Select all

dh219@gin:/tmp/osbuildtest/tos3x$ ls -l glue/*.img
-rw-r--r-- 1 dh219 dh219 524288 Oct 24 15:20 glue/tos306de.img
There it is.

Now you'd have to set it up for 2.06 and UK (or whatever) then apply your changes, but it's all in there.

BW
DFB1 Open source 50MHz 030 and TT-RAM accelerator for the Falcon
Smalliermouse ST-optimised USB mouse adapter based on SmallyMouse2
FrontBench The Frontier: Elite 2 intro as a benchmark
User avatar
exxos
Site Admin
Site Admin
Posts: 27278
Joined: Wed Aug 16, 2017 11:19 pm
Location: UK
Contact:

Re: Different compilers for compiling TOS ?

Post by exxos »

@Badwolf I'm not using the files from git though. I patched loads of stuff so all the files are on my PC.

I gave up with Grok and GPT said.

Capture.PNG
Capture.PNG (102.25 KiB) Viewed 333 times


My files did likely come from that same repo anyway. But would have been some years ago now.

Running MAKE or MAKE CLEAN does nothing at all. Totally silent output.
User avatar
exxos
Site Admin
Site Admin
Posts: 27278
Joined: Wed Aug 16, 2017 11:19 pm
Location: UK
Contact:

Re: Different compilers for compiling TOS ?

Post by exxos »

Code: Select all

$ git clone https://github.com/th-otto/tos3x.git
Cloning into 'tos3x'...
fatal: remote helper 'https' aborted session

Even that doesn't work :(


Downloaded manually.. still does nothing.

Capture.PNG
Capture.PNG (36.39 KiB) Viewed 326 times

:mad:

Capture.PNG
Capture.PNG (58.25 KiB) Viewed 318 times

Get out of this rabbit hole now then I guess.....

I mean if the new compiler isn't going to drastically optimise stuff to be more efficient, than is probably just not worth all the hassle anyway..

Mostly I was just trying to find something a bit quicker and simpler and more modern to compile with, but it's just turning into another software nightmare I just cannot be bothered with :)
User avatar
Badwolf
Site sponsor
Site sponsor
Posts: 2977
Joined: Tue Nov 19, 2019 12:09 pm

Re: Different compilers for compiling TOS ?

Post by Badwolf »

exxos wrote: Fri Oct 24, 2025 3:29 pm @Badwolf I'm not using the files from git though. I patched loads of stuff so all the files are on my PC.
Start with the git version. Apply your changes.

And *for the umpteenth time*, stop using LLMs to try to solve your problems! Of course it's not running TTP files. What nonsense. That's the Atari version.

Anyway, I just tried downloading the zip instead (https://github.com/th-otto/tos3x/archiv ... master.zip) and, apart from cd to a different directory name, it just made first time again.

You haven't shown us what's in your tos3x directory, BTW.

Oh, it's jsut occurred to me perhaps cygwin has two types of make. Try running 'gmake' instead?

BW
DFB1 Open source 50MHz 030 and TT-RAM accelerator for the Falcon
Smalliermouse ST-optimised USB mouse adapter based on SmallyMouse2
FrontBench The Frontier: Elite 2 intro as a benchmark
dml
Posts: 781
Joined: Wed Nov 15, 2017 10:11 pm

Re: Different compilers for compiling TOS ?

Post by dml »

exxos wrote: Fri Oct 24, 2025 1:19 pm What a faff! had to install nano... wget installs but does nothing at all.

Did a test program:

Code: Select all

mkdir ~/atari_projects
cd ~/atari_projects
 nano hello.c
 
It might be helpful to know that the cygwin drives are also just Windows directories - you can use nano (or vim or anything else) from the cygwin shell, or you can edit the code on the disk in Windows using any editor or IDE.

Code: Select all

> explorer . 
That should open a windows file explorer where your sources are so you can mess with them directly.

(yes, you can run normal windows .exe programs from cygwin shell)


But there are some hazards - Windows CRLF line endings sometimes can creep in from your editor/IDE and its easy to get mixed up with / posix directory separators and \ Windows separators. Cygwin will tolerate both but the programs you are running there might not. Also permissions might be an issue in some cases where they matter since Windows file operations can change them under cygwin's feet. Usually this isn't an issue for compiling source projects though.
Locked

Return to “SOFTWARE”