Re: [cc65] Profiling

Date view Thread view Subject view

From: groepaz (groepaz_at_gmx.net)
Date: 2001-08-03 00:33:24


Hello Ullrich,

Friday, August 03, 2001, 12:00:29 AM, you wrote:


UvB> On Thu, Aug 02, 2001 at 11:03:14PM +0200, groepaz wrote:
>> i ment sth that would allow me to include a call to some of my
>> profiling functions automatically at the start and at the end of every
>> function. (the compiler would also need to pass function-name and
>> sourcefile-name to that function to make decent profiling possible).

UvB> Seems I misunderstood you, sorry. Yes that would be possible and it wouldn't
UvB> be too much work, But what do you expect from profiling? We do already know
UvB> that the 6502 is slow:-)

haha ;=) well... i would ofcoz (well i do it already, but cant really
use it efficiently this way) use it to make stuff running as fast as
possible ;) a profiler can really help finding which function is the
real speed-killer and which is rather worth beeing optimized for
size... moreover with some effort it should be possible to make
profiling almost cycle-exact (+/- 2 cycles i think) and its a lot
easier to figure out the best/worst/average cyclecount of a function,
or even a block of functions, with a profiler ;) also it should be a
valuable tool for everyone supporting the code of the compiler itself
and the libraries.... plus it would be one more step to beeing able to
let cc65 do whatever you could expect a compiler to do ;=)

oh and btw... i have a pretty 'alpha' state stdio/dos lib for the c64
(open/close/read/write/findfirst/findnext/dos etc i dont remember ;))
up and running.... looks like lseek() will work aswell, but it will
suck hell without a special drive-dedicated driver ;) (i have layouted
the code so one can hook up different types of "drivers" for each
drive so if someone is crazy enough to write a dedicated cmd-hd driver
or sth, that wont be a problem.) really hope for some more spare time
so i can clean this up and make a test-application etc... not to speak
of rewriting loads of stuff in asm, although i'd want to wait with
that until more ppl actually used that code and squeezed the last bugs
out of it ,=)

-- 
Best regards,
 groepaz                            mailto:groepaz_at_gmx.net


----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo_at_musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.


Date view Thread view Subject view

This archive was generated by hypermail 2.1.3 : 2001-12-14 22:05:40 CET