Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2015-05

aarch64-linux: PATCH: implement gprt0.as for profiling

3 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Jonas Maebe
to Edmund Grimley Evans
Edmund Grimley Evans wrote
rtl/linux/aarch64/gprt0.as is based on aarch64/cprt0.as and x86_64/gprt0.as.

Thanks, committed.

webtbs/tw0876 now passes.

I didn't commit the change to options.pas, because as the comment there mentions, you first also have to implement the g_profilecode method of the code generator.

cgobj.pas contains a dummy implementation that does not do anything. While that means the test will successfully compile and run, no actual profile information will be generated because there are no calls to mcount in the program (the testsuite does not contain any logic to check whether the generated gprof information by the test program is probably correct).

Jonas

Reply by email

Edmund Grimley Evans
to Jonas Maebe

Jonas:

Show quoted text 5 lines
While that means the test will successfully compile and run, no actual profile information will be generated because there are no calls to mcount in the program (the testsuite does not contain any logic to check whether the generated gprof information by the test program is probably correct).

Yes. In fact, if I remember correctly, the test does not even check that gmon.out is created.

Edmund

Reply by email