Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
55 user(s) are online (39 user(s) are browsing Forums)

Members: 1
Guests: 54

IamSONIC, more...

Support us!

Headlines

 
  Register To Post  

« 1 2 (3)
Re: SDK addon package
Just popping in
Just popping in


See User information
@walkero

Mmm... three subversions of any GCC version compiled to default newlib, clib2 and clib4.
Later a script to choose the default one.

Fast and silly, ..what do you think about?

Go to top
Re: SDK addon package
Amigans Defender
Amigans Defender


See User information
As joerg said, you can create a "specs" file and change the default crt you want to use. And the specs file is different in any gcc version

i'm really tired...
Go to top
Re: SDK addon package
Quite a regular
Quite a regular


See User information
@walkero
thank you for this!
It is much easier produce SPE code with clib4.

AmigaOS3: Amiga 1200
AmigaOS4: Micro A1-C, AmigaOne XE, Pegasos II, Sam440ep, Sam440ep-flex, AmigaOne X1000
MorphOS: Efika 5200b, Pegasos I, Pegasos II, Powerbook, Mac Mini, iMac, Powermac Quad
Go to top
Re: SDK addon package
Quite a regular
Quite a regular


See User information
@walkero

Thanks for the update!

1989-> A500, A600, A3000, A4000, A1200, CD32, µA1, PegII, A1XE, CDTV, Amy/416D79, A1X5000, Vampire 500 V2+, Vampire 600 V2, Amy-ITX, Denise ITX, Apollo V4SA, A1X5000/40 <-2026
Go to top
Re: SDK addon package
Home away from home
Home away from home


See User information
@afxgroup
Quote:
As joerg said, you can create a "specs" file and change the default crt you want to use. And the specs file is different in any gcc version
In case there are GCC distributions with missing "specs" file (why?) you can use
gcc -dumpspecs specs
, store it (the internal defaults of the GCC executable you are using) to the appropriate path (sorry, I don't remember where it is, or should be, and it might be a different path in different versions of GCC) and use that as a start:
You can change anything there you want, add additional C libraries, change the default C library, etc.


Edited by joerg on 2026/6/18 20:37:24
Edited by joerg on 2026/6/18 20:37:43
Go to top
Re: SDK addon package
Site Builder
Site Builder


See User information
I did a fast check on the generated gcc packages as they come from adtools and there is no specs file included. I am goin to recompile one of them and see if that was skipped when the archive was created.

To be honest, I was not aware that a file called specs existed and could be used like what you guys describe. I will let you know if I find anything.

Follow me on
Ko-fi, Twitter, YouTube, Twitch
Go to top
Re: SDK addon package
Just popping in
Just popping in


See User information
@walkero

Quote:
I did a fast check on the generated gcc packages as they come from adtools and there is no specs file included.

GCC does not come with an external specs file; it uses built-in specs (those which are printed by the '-dumpspecs' option). However, if it finds an external specs file when it's run, it will use that instead of/in addition to the built-in specs. This lets you create your own specs that add to or override the built-in ones. Typically you would do this by using '-dumpspecs' to get a copy of the built-in specs as joerg describes, and then modifying them as needed. The specs commands are described in the GCC docs.

I have a non-standard SDK/GCC layout (I'm just weird that way), and have long used my own custom specs file to tell GCC about my layout. One issue I ran across -- which might not be a problem with a standard SDK layout -- is that GCC seems to look in different places for the specs file, depending on how it was run. If run from the shell it looks in one place, while if run from Make it looks in a different place. As a result, I have to have a copy of my specs file in both places.

Quote:
...store [the specs file] to the appropriate path (sorry, I don't remember where it is, or should be, and it might be a different path in different versions of GCC)...

You can use Snoopy to discover where GCC looks for a specs file.

Go to top
Re: SDK addon package
Site Builder
Site Builder


See User information
I have a new native port of the make v4.4.1 ready, and I would love feedback. If you would like to test it with your projects and give me your feedback, that would be great. You may find it at https://git.walkero.gr/walkero/make/releases/tag/4.4.1-beta3

Make sure to backup the older make and gmake executables from the SDK:C/ folder.

This will be included in future SDK Addon releases, that's why I share it in the topic.

Follow me on
Ko-fi, Twitter, YouTube, Twitch
Go to top

  Register To Post
« 1 2 (3)

 




Currently Active Users Viewing This Thread: 2 ( 0 members and 2 Anonymous Users )




Powered by XOOPS 2.0 © 2001-2024 The XOOPS Project