C & C++

Profiling possible on X1000 or Sam440?

As the title says, is it possible to profile GCC-compiled executables on AmigaOS4.1 using an X1000 or Sam440?

I can't get GCC's built-in profiling (-pg) to work, it just crashes when the executable finishes on my X1000. I have been told that it should work on old AmigaOnes', but is probably not supported on X1000 or Sam440. (I have not yet tried Sam440.)

I tried using the program "Hieronymus", but it doesn't support the X1000. The readme seems to indicate it will work on the Sam440... is this really my only option?!?

Forums: 

Command line args /K/M

Does anyone have a modern, up to date, example on how to read command line args with a /K/M switch? As in: argTemplate="PATH/K/M,ICONIFY/S";
I guess the use of the PATH is optional.

My code works just fine for PATH/K, but throw in the /M and all the text is garbled. I imagine there is a sub-array for the /M items???

And how is arg 0 the name of the program?

Forums: 

amigalib

I have ported a Cx from OS3.9 to OS4.1FE but need to link amiga.lib for Cx commands (ArgArrayInit(), ArgString(), etc).

I am drawing a total blank on how to do. I am not using -libauto. -lamiga and -lamiga.lib say cannot find.

I am using CodeBench, and putting that in Settings->Linker tab->Linker switches.

Side question: why are these commands still in amigalib and not the Commodities library?

Forums: 

Generic C reusable codes for everyone

It would be nice to have reusable generic code included in SDK that would be usefull for everyone, for example the image manipulation. If my code needs to load images from datatypes and then resize/scale them, this should be something like calling a specific function. This way the development time for anyone would be less and the productivity would be bigger. The image manipulation is just an example, but this could be done to other matters too.

Is this feasible or not? Are there codes ready to use?

Forums: 

Looking for a compact C++ STL implementation... (was "STLPort?")

I have to statically link with the C++ libraries, and they're rather bloated (especially because I'm using C++ streams). Hence, I'm really interested in using STLPort, which I've heard is much more compact. Has anyone used this on AmigaOS 4.x recently?

I've tried Steven's old port from 2004, but it's hardwired for clib2 and doesn't compile any more. My brief attempt to update it to use newlib ended with:

Forums: 

Pages

Subscribe to RSS - C & C++