Gregery,
Thanks for your very nice debugging tool! I can make good use of that!
Kind regards
Eddy
------------------
[email protected]
Announcement
Collapse
No announcement yet.
SOURCE CODE: PBDLL DEBUG.INC (Write to Console)
Collapse
X
-
originally posted by knuth konrad:
eddy, wayne, have a look at http://www.powerbasic.com/support/pb...ad.php?t=25571 . that might get you started.
and i want the actual removing of unreferenced subs. i managed to do this
in my program, but it needs a bit of work to finish.
eddy
------------------
[email protected]
Leave a comment:
-
-
eddy, wayne,
have a look at http://www.powerbasic.com/support/pb...ad.php?t=25571 . that might get you started.
knuth
------------------
http://www.softaware.de
Leave a comment:
-
-
Lance, i have absolutely no idea how pb.exe goes from source to exe but I would have thought that it might be able to keep count of how many times each sub/variable is used (but ignoring exported functions!), and then at the end of the compile if any subs/vars have 0 references, a simple alert letting the user know that the sub/var wasnt referenced... ? It just seems to me that garbage detection is best done by the compiler itself?
Eddy, I just sent you an email, Id love to see your source thanksim not so much interested in garbage removal/stripping as I hate automated deletion of anything, but detection would be superb. Im tempted to write my own also
------------------
Leave a comment:
-
-
Originally posted by Wayne Diamond:
Speaking of guff removal, has anyone ever built a PB garbage collector to detect/strip unused vars, functions etc? i notice some compilers such as lcc alert you to unused funcs/vars etc when you compile, is that going to be a feature of the next PB compiler?
I'm writing a program that can remove unused functions and subs of a source file.
I stopped programming on it for a while to work on another program, but
the 'stripper' as I call it is already partially working. The only thing
I have to program is for the program to handle search paths of include files.
Also tooltips and help files have to be written.
The program checks the source code and lists all of the unreferenced subs
and functions. Of this list you can select which subs you want to remove and
which you want to keep in your program. The cleaned up code is saved
under another name.
If you want I can e-mail you the source code 'as is' so you can use
it to clean up some of your code or even to finish the program..
Kind regards
Eddy
------------------
[email protected]
Leave a comment:
-
-
Originally posted by Wayne Diamond:
Speaking of guff removal, has anyone ever built a PB garbage collector to detect/strip unused vars, functions etc? i notice some compilers such as lcc alert you to unused funcs/vars etc when you compile, is that going to be a feature of the next PB compiler?
------------------
Lance
PowerBASIC Support
mailto:[email protected][email protected]</A>
Leave a comment:
-
-
Semen,
That is interesting. DbgView is a nice application the
only thing I dislike is that if I want to release a debug
version for testing on another PC then that PC will have to
download DbgView. I like the ability to have all the
debug code inbedded in my app.
------------------
-Greg
Leave a comment:
-
-
greg --
it was time, when i used cprint - second post in http://www.powerbasic.com/support/pb...ad.php?t=22614
but somehow greg turgeron (?) pointed another (actually much comfortable) way:
to start dbgview (www.sysinternals.com) and to use outputdebugstring in pb/dll.
------------------
e-mail: [email protected]
Leave a comment:
-
-
Speaking of guff removal, has anyone ever built a PB garbage collector to detect/strip unused vars, functions etc? i notice some compilers such as lcc alert you to unused funcs/vars etc when you compile, is that going to be a feature of the next PB compiler?
[This message has been edited by Wayne Diamond (edited July 15, 2001).]
Leave a comment:
-
-
Lance,
Point taken, I made a DDT sample from scratch, without
all the guffVery simple to see my code now.
------------------
-Greg
Leave a comment:
-
-
Chris mentioned he was producing a version of EZGUI (DDT edition) that removed all of the irrelevent guff from the code.
With a posting like the one in the Source Code forum, it is difficult to see what the example EZGUI code is doing because the "meat" of the code is not easy to spot amongst the bulk.
Just My $0.02...
--Lance
Leave a comment:
-
-
SOURCE CODE: PBDLL DEBUG.INC (Write to Console)
http://www.powerbasic.com/support/pb...ad.php?t=23066
i posted a nice include file to help with debugging please
give me your opinions on it.
------------------
-gregTags: None
-
Leave a comment: