Profiler

Hi SDL guys, I’m new to this mailing list, and I am very interested by SDL.
It seems that Sam did (and is doing) a very good job! But now some
questions:

  1. is someone using any IDE under Linux? (just to know… I used to develop
    under win direct x using Watcom and with no IDE, but it can be
    time-saving…)

  2. what kind of profilig tool do you use? Watcom have a very
    functional-graphical-profiler, and I’d like to have something similar under
    Linux

Thank you and sorry for my bad english…

                                                       Alessandro Porcu

Hi SDL guys, I’m new to this mailing list, and I am very interested by SDL.
It seems that Sam did (and is doing) a very good job! But now some
questions:

  1. is someone using any IDE under Linux? (just to know… I used to develop
    under win direct x using Watcom and with no IDE, but it can be
    time-saving…)

I use Code crusader for writing the code, and DDD for debugging.

  1. what kind of profilig tool do you use? Watcom have a very
    functional-graphical-profiler, and I’d like to have something similar under
    Linux

I think most linux distros come with a profiler along with gcc, gdb, etc.

-Garrett, WPI student majoring in Computer Science.

“He who joyfully marches in rank and file has already earned
my contempt. He has been given a large brain by mistake, since
for him the spinal cord would suffice.” -Albert EinsteinOn Thu, 02 Sep 1999, you wrote:

Thank you very much, but… is it freeware? where do I find it?

Hi SDL guys, I’m new to this mailing list, and I am very interested by
SDL.
It seems that Sam did (and is doing) a very good job! But now some
questions:

  1. is someone using any IDE under Linux? (just to know… I used to
    develop
    under win direct x using Watcom and with no IDE, but it can be
    time-saving…)

I use Code crusader for writing the code, and DDD for debugging.

  1. what kind of profilig tool do you use? Watcom have a very
    functional-graphical-profiler, and I’d like to have something similar
    under
    Linux

I think most linux distros come with a profiler along with gcc, gdb,
etc.

-Garrett, WPI student majoring in Computer Science.

“He who joyfully marches in rank and file has already earned
my contempt. He has been given a large brain by mistake, since
for him the spinal cord would suffice.” -Albert EinsteinOn Thu, 02 Sep 1999, you wrote:

Heres the url for code crusader
http://www.cco.caltech.edu/~jafl/jcc/

And DDD
http://www.cs.tu-bs.de/softech/ddd

-Garrett, WPI student majoring in Computer Science.

“He who joyfully marches in rank and file has already earned
my contempt. He has been given a large brain by mistake, since
for him the spinal cord would suffice.” -Albert EinsteinOn Thu, 02 Sep 1999, you wrote:

Thank you very much, but… is it freeware? where do I find it?

aporcu at amm.unica.it writes:

  1. is someone using any IDE under Linux? (just to know… I used to
    develop
    under win direct x using Watcom and with no IDE, but it can be
    time-saving…)

I am in the same boat you are in. Watcom is now officially dead (rumoured
to be going Open Source with it…cross your fingers), and am tired of
the flaky Windows development environment. I have moved all my development
to Linux using Code Crusader
(http://www.its.caltech.edu/~jafl/jcc/jcc.html). Of all the Linux IDE’s
I’ve tried, it is really the best one I have found. It is a GUI IDE for
gcc, make, etc. and is easy to use. I have yet to play with it’s companion
debugger (Code Medic; on the same sight). I have read several reviews
comparing Linux IDE’s (both free and commercial) and Code Crusader has
always come out on top. Real sweet since it is free!

As of last night, I have successfully compiled and linked several of my
old programs using SDL and Code Crusader, and am very happy with the
results. I stayed away from developing with Linux for a long time since I
don’t like emacs/vi editing and manually making Makefiles, etc., although
I had to tweak the Code Crusader generated Makefile to play nice with the
GNUmake file included with the SDL SDK. It was a minor tweak though.

Kelly>

And, since you did ask about profilers, gprof is the program you’re
looking for. Do a “type -path gprof” to see if you have it installed
in your path already.

 Warren

______________________________ Reply Separator _________________________________Subject: Re: [SDL] profiler…
Author: at internet-mail
Date: 9/2/99 11:22 AM

On Thu, 02 Sep 1999, you wrote:

Thank you very much, but… is it freeware? where do I find it?

Heres the url for code crusader
http://www.cco.caltech.edu/~jafl/jcc/

And DDD
http://www.cs.tu-bs.de/softech/ddd

-Garrett, WPI student majoring in Computer Science.

“He who joyfully marches in rank and file has already earned
my contempt. He has been given a large brain by mistake, since
for him the spinal cord would suffice.” -Albert Einstein

aporcu at amm.unica.it wrote:

Hi SDL guys, I’m new to this mailing list, and I am very interested by SDL.
It seems that Sam did (and is doing) a very good job! But now some
questions:

  1. is someone using any IDE under Linux? (just to know… I used to develop
    under win direct x using Watcom and with no IDE, but it can be
    time-saving…)
    I’m using Code Crusader, Code Warrior is also available.

Hi SDL guys, I’m new to this mailing list, and I am very interested by SDL.
It seems that Sam did (and is doing) a very good job! But now some
questions:

  1. is someone using any IDE under Linux? (just to know… I used to develop
    under win direct x using Watcom and with no IDE, but it can be
    time-saving…)

The RHIDE program I used to use under djgpp apparently exists for Linux
too. It’s a lot like the old Borland IDE’s for DOS, and wraps around both
gcc and gdb, allowing you to compile and debug apps with a single
keystroke just like in BC++. It’s available at any sunsite, er, metalab
mirror. I don’t use it, though. I’m an Emacs partisan myself, and IMHO
that’s the best IDE in the world!

  1. what kind of profilig tool do you use? Watcom have a very
    functional-graphical-profiler, and I’d like to have something similar under
    Linux

Well, I personally use gprof only, and don’t see what all the fuss is with
these graphical tools. Sometimes, command line tools can get you the
results a lot faster–that is, if you have the patience to figure 'em out!On Thu, 2 Sep 1999 aporcu at amm.unica.it wrote:


| Rafael R. Sevilla @Rafael_R_Sevilla_94 |
| Instrumentation, Robotics, and Control Laboratory |

College of Engineering, University of the Philippines, Diliman

You have to pay for Code Warrior though. Code Forge looks nice but you
also have to pay for that.

-Garrett, WPI student majoring in Computer Science.

“He who joyfully marches in rank and file has already earned
my contempt. He has been given a large brain by mistake, since
for him the spinal cord would suffice.” -Albert EinsteinOn Thu, 02 Sep 1999, you wrote:

aporcu at amm.unica.it wrote:

Hi SDL guys, I’m new to this mailing list, and I am very interested by SDL.
It seems that Sam did (and is doing) a very good job! But now some
questions:

  1. is someone using any IDE under Linux? (just to know… I used to develop
    under win direct x using Watcom and with no IDE, but it can be
    time-saving…)
    I’m using Code Crusader, Code Warrior is also available.

Hi there…
“Rafael R. Sevilla 94-22131” wrote:

Hi SDL guys, I’m new to this mailing list, and I am very interested by SDL.
It seems that Sam did (and is doing) a very good job! But now some
questions:

  1. is someone using any IDE under Linux? (just to know… I used to develop
    under win direct x using Watcom and with no IDE, but it can be
    time-saving…)

The RHIDE program I used to use under djgpp apparently exists for Linux
too. It’s a lot like the old Borland IDE’s for DOS, and wraps around both
gcc and gdb, allowing you to compile and debug apps with a single
keystroke just like in BC++. It’s available at any sunsite, er, metalab
mirror. I don’t use it, though. I’m an Emacs partisan myself, and IMHO
that’s the best IDE in the world!

RHIDE is a really nice IDE, but don’t even try installing it unless via the RPM,
it is a NIGHTMARE to compile (it uses its own makefile system with absolute
paths all over the place. It is unlikely to ever compile anywhere other than the
maintainer’s own system). It’s nice to use though.

  1. what kind of profilig tool do you use? Watcom have a very
    functional-graphical-profiler, and I’d like to have something similar under
    Linux

Well, I personally use gprof only, and don’t see what all the fuss is with
these graphical tools. Sometimes, command line tools can get you the
results a lot faster–that is, if you have the patience to figure 'em out!

While we’re on the subject, does anyone know if it’s possible to profile shared
libraries like SDL? Or do I
have to link the static version and profile like that?

:slight_smile:
Peter> On Thu, 2 Sep 1999 aporcu at amm.unica.it wrote:


| Rafael R. Sevilla rsevilla at eee.upd.edu.ph |
| Instrumentation, Robotics, and Control Laboratory |

College of Engineering, University of the Philippines, Diliman

Peter Hawkins
peterh at isa.net.au
Internet Solutions Australia (ACN 077 685 011)
Ph: 1300 369 990 - Fax: 02 6230 4455

Thank you all!

I used RHIDE under DJGPP and it’s nice, but I prefer graphical tools…
Yesterday I tryied Code Crusader and it’s very very cool! And downloaded
DDD too and it’s seems fantastic too!

…and Rafael, you’re right about graphical tools, I’ll try gprof tonight!

bye!

Alessandro Porcu
@aporcu_at_amm.unica
alex.porcu at tiscalinet.it

The “What’s New” page says that SDL “Has been ported to MacOS,” but where
is the download?

//Miles

Same place as the rest of it is.
Sean>The “What’s New” page says that SDL “Has been ported to MacOS,” but where

is the download?

//Miles

Same place as the rest of it is.
Sean

The “What’s New” page says that SDL “Has been ported to MacOS,” but where
is the download?

//Miles

The MacOS port is very alpha, and not yet ready for public consumption.
If you are ready to enter the brave new world of Mac/SDL, let me know. :slight_smile:

-Sam Lantinga				(slouken at devolution.com)

Lead Programmer, Loki Entertainment Software–
“Any sufficiently advanced bug is indistinguishable from a feature”
– Rich Kulawiec

Sam Lantinga wrote:

The MacOS port is very alpha, and not yet ready for public consumption.
If you are ready to enter the brave new world of Mac/SDL, let me know. :slight_smile:

Does that mean there is MacOS code that isn’t in CVS?

Who -is- in charge of the Mac port? I’m interested in using SDL as the
foundation of a program I’m working on http://www.gunk.net/, if no one
else is actually developing for the MacOS I’d be willing to contribute.

Jon.

I dont know if anyone is really in charge. Kyle seems to have done most of
the work. I am working on my small part (cd interface) in my free time.
Unfortunately i only have a few free hours a week after school and work and
such. Dive in and help!

Sean>Sam Lantinga wrote:

The MacOS port is very alpha, and not yet ready for public consumption.
If you are ready to enter the brave new world of Mac/SDL, let me know. :slight_smile:

Does that mean there is MacOS code that isn’t in CVS?

Who -is- in charge of the Mac port? I’m interested in using SDL as the
foundation of a program I’m working on http://www.gunk.net/, if no one
else is actually developing for the MacOS I’d be willing to contribute.

Jon.

Is it possible to get a CVS username/password or will we need to send all
patchs via a central admin dude (Sam?)

I’m particularly interested in get input and display with OpenGL working.

Jon.> I dont know if anyone is really in charge.  Kyle seems to have done most of

the work. I am working on my small part (cd interface) in my free time.
Unfortunately i only have a few free hours a week after school and work and
such. Dive in and help!

Sean

Sam Lantinga wrote:

The MacOS port is very alpha, and not yet ready for public consumption.
If you are ready to enter the brave new world of Mac/SDL, let me know. :slight_smile:

Does that mean there is MacOS code that isn’t in CVS?

Who -is- in charge of the Mac port? I’m interested in using SDL as the
foundation of a program I’m working on http://www.gunk.net/, if no one
else is actually developing for the MacOS I’d be willing to contribute.

Jon.

I dont know if anyone is really in charge. Kyle seems to have done most of
the work.
I haven’t done much, just startup interface. I think that Max Watson was
working on sound, could be wrong…

I am working on my small part (cd interface) in my free time.
Unfortunately i only have a few free hours a week after school and work and
such. Dive in and help!
To be honest I’m not to sure of the future of Mac SDL, simple because the
Co-operative/non-reenternt nature of the MacOS. Nobody is trying to
support Win 3.1… In some ways it would almost be better to simple recode
a Mac OS X version.

But to keep the ball rolling, I wanted to ask the mac coders how they
prefered to get their keys strokes. Current SDL uses the events stucture
to update the SDLKeys structure. I have code that would use GetKeys. Sam
Lantinga suggested that we leave both methods in, and use a compiler
derective to switch between them. I think the getkeys method should be the
default. Any thoughts?

Also, when will SDL begin to support muliple resolutions? I experimented
with SetDepth function in the SDL_SYS_SetVideoMode subprogram, but SDL
would never request another resolution. (I’ll admit I have’t tried this
code in the past month…)

Kyle

f u cn rd ths thn u cn gt gd jb prgrmmng cmptrs---------
The opinions expressed do not reflect those of my
employer. Mostly because I’m unemployed.
------E4D8 9DE7 C3DC 424A 20F9 79CF 7414 2E99 2E54 6B5C

Also, when will SDL begin to support muliple resolutions? I experimented
with SetDepth function in the SDL_SYS_SetVideoMode subprogram, but SDL
would never request another resolution. (I’ll admit I have’t tried this
code in the past month…)

You need to update the list of rectangles returned by SDL_SYS_ListModes().
SDL will only ask the driver for a mode returned by that function.

-Sam Lantinga				(slouken at devolution.com)

Lead Programmer, Loki Entertainment Software–
“Any sufficiently advanced bug is indistinguishable from a feature”
– Rich Kulawiec

But to keep the ball rolling, I wanted to ask the mac coders how they
prefered to get their keys strokes. Current SDL uses the events stucture
to update the SDLKeys structure. I have code that would use GetKeys. Sam
Lantinga suggested that we leave both methods in, and use a compiler
derective to switch between them. I think the getkeys method should be the
default. Any thoughts?

GetOSEvent is much safer than GetKeys. So many games misuse GetKeys, so
that on international keyboards the game tells you to use one key, but you
actually use a different one which would be in the same place if you had a
US keyboard.

Really for games on the Mac, InputSprocket is the way to go, but since you
define a small number of actions, this might not be compatible with other
platforms. I guess a cross-platform input API which uses InputSprocket on
the Mac and whatever is relevant on other platforms is the ideal.

I keep grabbing SDL, and when I get time, I want to start using it to port
Monkey Shines to linux/BeOS, but most of my work is spent writing Gorilla
Warfare. Maybe this weekend I will get some free time, and familiarise
myself with the API. Then I can see how easy it would be to use SDL with
InputSprocket. I think this would be the best way, but I don’t know if any
event functions are related to other stuff so intimately that this would
not be possible.

I’ve only ever programmed on the Mac, so I don’t know how much of a problem
cooperative multitasking really is, but is it not possible to do stuff
which has to happen outside of your main loop in a TimeManager task ?

I would love MacSDL to be ready, so I could develop for multiple platforms
simultaneously. Unfortunately I can’t see me having time to actually write
code, but please keep posting, and if there is anything specific/Mac
debugging I can help with, I’ll do my best.

Has anyone created a CodeWarrior project for MacSDL ? Is there a list of
what works and what doesn’t ? One thing which puts me off is that the only
way I can see to work out what is broken is to run the demos and then try
to work out what is going wrong.

I’ll try to take a look though.

Mark