Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
139 user(s) are online (120 user(s) are browsing Forums)

Members: 0
Guests: 139

more...

Support us!

Headlines

 
  Register To Post  

« 1 2 3 4 (5)
Re: Is gprof ever works on os4 ? It is! And can be still!
Just can't stay away
Just can't stay away


See User information
@Raziel
Quote:
Mabye -pg needs more switches under AmigaOS4?
Only if you are using the new binutils. At least some of them have a broken specs and you have to add -mcrt=newlib to your CFLAGS and LDFLAGS.


Edited by joerg on 2023/10/23 18:15:17
Go to top
Re: Is gprof ever works on os4 ? It is! And can be still!
Home away from home
Home away from home


See User information
@raziel,joerg
In terms of "-pg" its the same for both: be it adtools's old binutils or new ones. Just if old clib2 used, you had to add "-lprofile" as well, as profiling code in clib2 were out to libprofile.a (while with newlib was in libc as everywhere). But with clib4 now it also in libc.a now as should be.

So, if you use old clib2, then "-pg" + "-lprofile". For newlib just "-pg", and for clib4 also just "-pg".

But then, profiling in clib2 broken, and cant be used easyly even on public kernel on old-supported cpus..soo only clib4. And if want to profile on x5k, x1k and tabor, public kernel will not work

Join us to improve dopus5!
AmigaOS4 on youtube
Go to top
Re: Is gprof ever works on os4 ? It is! And can be still!
Just can't stay away
Just can't stay away


See User information
@kas1e
Quote:
But then, profiling in clib2 broken, and cant be used easyly even on public kernel on old-supported cpus..soo only clib4.
What's the problem with current newlib versions on public kernels, supported CPUs and adtools GCC+binutils?
At least with my old newlib versions using GCC 2.95.x-4.2.4 and binutils 2.14.x profiling was working.

Go to top
Re: Is gprof ever works on os4 ? It is! And can be still!
Home away from home
Home away from home


See User information
@kas1e

Development:Coding/SDK/gcc/ppc-amigaos/bin/ldcannot find -lprofile


Using
gcc (adtools build 11.3.0) 11.3.0

Go to top
Re: Is gprof ever works on os4 ? It is! And can be still!
Home away from home
Home away from home


See User information
@Raziel
if cannot find -lprofile, then no clib2 installed/used. But again, this anyway will not work on your x1000 with public kernel and with clib2.

@joerg
Quote:

What's the problem with current newlib versions on public kernels, supported CPUs and adtools GCC+binutils?
At least with my old newlib versions using GCC 2.95.x-4.2.4 and binutils 2.14.x profiling was working


Raziel had x1000, so with public kernel he had no supported cpu by performance monitor, only the beta one are. Also, since your 2.x and binutils 2.14 some things were changed (address of the .text placeholder is not 0x0000000 anymore, but 0x1000000), and to make profiling works with newlib or clib2 on old support CPUs, you had to provide "-Ttext=0x0000000", and then it will work. But this fixed, in latest clib4, and addresses calculated correclty now.

Join us to improve dopus5!
AmigaOS4 on youtube
Go to top
Re: Is gprof ever works on os4 ? It is! And can be still!
Home away from home
Home away from home


See User information
@kas1e

Quote:

But again, this anyway will not work on your x1000 with public kernel and with clib2.

Oh...i missed that somehow...probably won't see it working ever then

Thanks

Go to top
Re: Is gprof ever works on os4 ? It is! And can be still!
Home away from home
Home away from home


See User information
@Raziel
Quote:

Oh...i missed that somehow...probably won't see it working ever then


Yep, profiling is CPU based thing, and only lately Matthias add support for it for X5000, X1000 and Tabor. So it will work for those platforms only after kernel will be out for public.

You can of course compile it with -pg right now, by using clib4 to have it all compiles and links, and then build latest binutils from Max's repo to have correctly working gprof, but then, when you will analize gmon.out done on x1000, all you will have is 0.00s everywhere, because no perfomance.monitor on x1000 on public kernel, as it were added just week or so ago.

I hope kernel will be released sooner or later, too much work were spent into in last few years. And Trevor have rights to it, so he will release it for sure, just when - no one know.

Join us to improve dopus5!
AmigaOS4 on youtube
Go to top

  Register To Post
« 1 2 3 4 (5)

 




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




Powered by XOOPS 2.0 © 2001-2024 The XOOPS Project