Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
99 user(s) are online (50 user(s) are browsing Forums)

Members: 0
Guests: 99

more...

Headlines

Forum Index


Board index » All Posts (sTix)




Re: gcc 9 and 10
Just popping in
Just popping in


@kas1e

You're right. It's just a question of time before newer versions of gcc require a more recent binutils than what we have.

Go to top


Re: Is gprof ever works on os4 ? It is! And can be still!
Just popping in
Just popping in


@kas1e

In revision 267 TEXT_START_ADDR=0x01000000 was added to binutils/ld/emulparams/amigaos.sh. Before there was no such entry, which maybe, perhaps, maybe results in a default value of 0x00000000.

In binutils/ld/emulparams/amigaos.sh TEXT_START_ADDR is explicitly set to 0x00000000.

The commit message in rev 267 and 265 says that the changes come from Hans-Joerg and Thomas Frieden. On other words the changes might be older than what the SVN log indicates which means that it might be included in the SDK from 2008. This is pure speculation though.

Go to top


Re: Is gprof ever works on os4 ?
Just popping in
Just popping in


@kas1e

Wow, fantastic. I admire your digging skills and patience :)

Go to top


Re: Introducing Profyler
Just popping in
Just popping in


@IamSONIC
Quote:
Ideal supplement for OS4 developers toolchain.


I'd go even further and say that ideally this would be included in the SDK.

Go to top


Re: Is gprof ever works on os4 ?
Just popping in
Just popping in


@kas1e

Quote:
It looks like that before sba commit the things, os4 version of SDK comes from patches "hidden on some defunct harddrive somewhere in a landfill in central Europe". Changelog of them probabaly lost. Then, Sebastian just add what he got as last code from brothers and so already "changed" probabaly right after broken ld are in ..

I wrote mail to Sebastan with all details asking for info if he remember any or so, will see what he say.


Let's hope Sebastian remembers something. But it's a long long time to remember things like this.

Digging into binutils is a major mental challenge, it's a really depressing place to be :)


Go to top


Re: Is gprof ever works on os4 ?
Just popping in
Just popping in


@kas1e

True, no SDK:s come from the future. Almost only binutils changes between 180 and 231 it seems. No OS4 specific changes in binutils though. Some of it is obviously 68k, but I can't tell if there are generic Amiga changes in there as well.

Go to top


Re: Is gprof ever works on os4 ?
Just popping in
Just popping in


@kas1e

Quote:

Added a COMMONPAGE define which has an effect to how the internal linker scripts are populated. Binaries that are produced now with the internally scripts use much less diskspace. I hope that this doesn't have any bad side effects.

Revision: 335
Date: 2010-05-12 21:19
State: Added
Branch: trunk
Author: sba


In amigaos.sh:

Quote:

#. ${srcdir}/emulparams/elf32ppccommon.sh
TEMPLATE_NAME=amigaos
SCRIPT_NAME=amigaos
OUTPUT_FORMAT="elf32-amigaos"
MAXPAGESIZE="CONSTANT (MAXPAGESIZE)"
++ COMMONPAGESIZE="CONSTANT (COMMONPAGESIZE)"
ALIGNMENT=16
ARCH=powerpc
MACHINE=
GENERATE_SHLIB_SCRIPT=yes


Maybe, maybe.


Go to top


Re: Is gprof ever works on os4 ?
Just popping in
Just popping in


@kas1e

Good catch. My guess is that those two are built from different revisions of the patch sets found here:

https://sourceforge.net/p/adtools/code/254/log/?path=%2Ftrunk

As you can see they aren't exactly small and the commit messages aren't very descriptive.

The question is who built the SDK:s, and if that someone can be found, does he know what revisions he used?

This is all guesswork though, perhaps the patches used are hidden on some defunct harddrive somewhere in a landfill in central Europe.

Go to top


Re: Introducing Profyler
Just popping in
Just popping in


@msteed

I fully agree with kas1e. A lot of love has clearly gone into this. Great work!

Go to top


Re: Is gprof ever works on os4 ?
Just popping in
Just popping in


@kas1e

Excellent, hardcore digging :)

Go to top


Re: Is gprof ever works on os4 ?
Just popping in
Just popping in


@kas1e
Quote:
The next step which i want to do is just trying to create my own hand-made gmon.out, so to see, if the current gprof amigaos4 binary can handle at all gmon.out when there are "correct" values placed.

The correctness of those values depends on the binary though. How would would you create such a file? I might be missing something here.

Go to top


Re: gcc 9 and 10
Just popping in
Just popping in


@kas1e

I just saw the other thread and that you're trying to isolate the problem. Good idea.

Go to top


Re: gcc 9 and 10
Just popping in
Just popping in


@kas1e

I just can't find any tool except gprof that can read gmon.out. It would be nice to know if it's gprof itself that's broken, or if gmon.out contains garbage.

Go to top


Re: gcc 9 and 10
Just popping in
Just popping in


@trgswe

Sorry, I was a bit sloppy there, by ISO I meant ISO C, not POSIX. The only mandatory signals are SIGABRT, SIGFPE, SIGILL, SIGINT, SIGSEGV and SIGTERM.

Go to top


Re: gcc 9 and 10
Just popping in
Just popping in


@kas1e

Your're probably right. It crashes right away for me though. Does it work for you? (in the sense that you can run the executable and get a gmon.out)

Go to top


Re: gcc 9 and 10
Just popping in
Just popping in


@trgswe

Thanks for noticing. It's not part of the standard (ISO) but I'll add it anyway. I'm afraid it won't help gprof though :(

Go to top


Re: Did anyone trying to port Valgrind ever ?
Just popping in
Just popping in


@kas1e

Valgrind is pretty much Linux only. No point in even trying. A much better ide IMO is to try to isolate the hairy parts of your code and to keep them platform agnostic and use Valgrind for those parts only.

An interesting approch is to use AxRuntime to run your complete Amiga program on Linux. Then you must avoid OS4 specific things though.

I used the first approach for InstallerLG and it helped me alot. Tried AxRuntime as well and could get my MUI application to run in an hour or so. AxRuntime deserves more attention I think, it's a very interesting project.

Go to top


Re: gcc 9 and 10
Just popping in
Just popping in


@Raziel

Excellent, happy to hear that.

Go to top


Re: gcc 9 and 10
Just popping in
Just popping in


@Raziel
Quote:
Will there be a bleeding edge build soon-ish?


Yep, here:
https://github.com/sodero/adtools/releases/tag/10.3.0_1

That includes changes in clib2 as well, just minor C11/C2X things. Those changes haven't yet been integrated (so they will be missing if you build adtools yourself right now). I'll create a PR for those tonight unless something unexpected happens though.

@kas1e
Quote:
Yeah, the performance monitor works on x5k in beta now, but it didn't make gprof work. Because gprof stop working correctly some 10 years ago and didn't work where it works before: pegaos2, a1, etc.


That's a shame. Do you know the latest working version?

Go to top


Re: gcc 9 and 10
Just popping in
Just popping in


@kas1e
Yes, I've got an x5000. Good to know that there's a fix on its way. Let's hope that gprof springs to life once it's out. Or perhaps before, you're a beta tester right :) ?

Go to top



TopTop
« 1 2 (3) 4 5 6 ... 12 »




Powered by XOOPS 2.0 © 2001-2023 The XOOPS Project