Search found 18 matches

by aeolusc
Mon Feb 04, 2008 4:19 pm
Forum: PSP Development
Topic: gcc 4.3.0 (experimental) patch for PSP programming support
Replies: 3
Views: 2266

Updated patch link.
Resolved problem of compiling __builtin_allegrex_cache and update gcc to newest svn rev for patch generation.
Note: removed check to 1st argument of __builtin_allegrex_cache so that we should ensure it's smaller than 0x1f ourselves.
by aeolusc
Sat Jan 12, 2008 8:38 pm
Forum: PSP Development
Topic: gcc 4.3.0 (experimental) patch for PSP programming support
Replies: 3
Views: 2266

gcc 4.3.0 (experimental) patch for PSP programming support

Tested to all known psplibraries, works fine except libbulletml. As gcc 4.3.0 gets more limit to C++ compiling so that functions just like strlen, exit and so on should not be used without <string.h>/<stdlib.h> included. Modify source codes could have the problems resolved. Here's the patch: http://...
by aeolusc
Wed Nov 07, 2007 2:50 am
Forum: PSP Development
Topic: Problem with bus clock setting on slim 3.71
Replies: 18
Views: 9059

disasm sctrlHenSetSpeed, translated to C codes: int &#40;* scePowerSetClockFrequency2&#41;&#40;int cpufreq, int ramfreq, int busfreq&#41;; int &#40;* scePowerIsBatteryCharging&#41;&#40;void&#41;; void &#40;* scePower_driver_A09FC577&#41;&#40;int&#41;; ...
by aeolusc
Sun Nov 04, 2007 9:22 pm
Forum: PSP Development
Topic: suggestions to psptoolchain
Replies: 9
Views: 3247

Bigger? How much?
a bit smaller, :P
Builds fine, or works fine on the PSP too?
most programs work fine on PSP(c/c++,elf/prx).
only got a compiler internal error while building SDL_mixer/timidity, dunno if it is the problem imported by 4.2.2
by aeolusc
Sun Nov 04, 2007 5:18 pm
Forum: PSP Development
Topic: suggestions to psptoolchain
Replies: 9
Views: 3247

J.F. wrote:Has it been tested on existing libs and projects?
tested to build pspsdk, some 3rd part libs, works fine.

to jimparis: elf's generated by psp-gcc 4.2.2 have diffenrent size from ones by psp-gcc 4.1.0, so obviously some changes are made to mips compiling/linking
by aeolusc
Sun Nov 04, 2007 5:14 pm
Forum: PSP Development
Topic: suggestions to psptoolchain
Replies: 9
Views: 3247

no, i think leave them unchanged would cause incompatibilities and confusion. example: Compiled and installed pspsdk to /usr/local/pspdev(yes, that's default path). Move the pspdev to another place without compile it again(e.g. move to /usr/pspdev), add /usr/pspdev/bin to PATH, works fine for c file...
by aeolusc
Sun Nov 04, 2007 5:09 am
Forum: PSP Development
Topic: suggestions to psptoolchain
Replies: 9
Views: 3247

Here's my patch, for gcc 4.2.2, tested to work fine.
http://www.aeolusc.com/down/gcc-4.2.2-PSP.patch.bz2
1. Get env PSP_CPATH/PSP_C_INCLUDE_PATH/PSP_CPLUS_INCLUDE_PATH/PSP_LIBRARY_PATH for headers/libs search
2. Update gcc/g++ to 4.2.2
by aeolusc
Sun Nov 04, 2007 2:01 am
Forum: PSP Development
Topic: suggestions to psptoolchain
Replies: 9
Views: 3247

suggestions to psptoolchain

1. both gcc and psp-gcc read env CPATH/C_INCLUDE_PATH/CPLUS_INCLUDE_PATH/LIBRARY_PATH as header/lib search path, so that if we define them, gcc or psp-gcc might include/link files from wrong place. I think it's better to change the env name in psp-gcc, just like add prefix "PSP_" or such o...
by aeolusc
Sun Oct 28, 2007 11:49 pm
Forum: PSP Development
Topic: Problem with bus clock setting on slim 3.71
Replies: 18
Views: 9059

if you import function in c++, please add

Code: Select all

extern "C"
before your extern imported functions.
by aeolusc
Fri Oct 19, 2007 9:13 pm
Forum: PSP Development
Topic: SDL_Init - Out of memory
Replies: 4
Views: 1800

update to the latest pspsdk and try:

Code: Select all

PSP_HEAP_SIZE_MAX&#40;&#41;;
or

Code: Select all

PSP_HEAP_SIZE_KB&#40;-1&#41;;
by aeolusc
Fri Oct 19, 2007 12:51 pm
Forum: PSP Development
Topic: Problem with bus clock setting on slim 3.71
Replies: 18
Views: 9059

scePowerSetClockFrequency rule:
pll>=cpu>=bus*2
so if you set bus to 167, cpu should be at least 334

PS: i heard that pll&cpu could be set to 366 on slim, xD
by aeolusc
Fri Oct 19, 2007 12:30 pm
Forum: PSP Development
Topic: Problem with bus clock setting on slim 3.71
Replies: 18
Views: 9059

Problem with bus clock setting on slim 3.71

Here's some test result(Set bus clock to 50): Function/Result scePowerSetClockFrequency(in both scePower and scePower_driver)/Bus clock reset to about 95 scePowerSetBusClockFrequency(in both scePower and scePower_driver)/Bus clock's still 111 sctrlHENSetSpeed/Bus clock reset to about 95 It seems sys...
by aeolusc
Mon Oct 15, 2007 5:22 pm
Forum: PSP Development
Topic: gcc 4.1.0 and gcc 4.1.1
Replies: 13
Views: 4226

try modify scripts/005-gcc-4.1.0-stage2.sh
change

Code: Select all

make -j 2
to

Code: Select all

make
cygwin sometimes get the problem with duel compiling job
by aeolusc
Sun Oct 14, 2007 10:05 pm
Forum: PSP Development
Topic: gcc 4.1.0 and gcc 4.1.1
Replies: 13
Views: 4226

to pino112: you should paste real error info. try this: ./toolchain-sudo.sh 2>error.log then find error lines in error.log PS: (to pspsdk dev team) I've already tried apply the gcc-4.1.0 patch in pspsdk to gcc 4.1.2, works fine to me. So I think it's time to update toolchain to download gcc 4.1.2 to...
by aeolusc
Fri Oct 12, 2007 7:42 pm
Forum: PSP Development
Topic: Problem with PRX, freezes psp!
Replies: 3
Views: 2042

I've found this problem before, resolved by disabling all plugins preloaded by CFW. Thought it is a memory allocation conflict between stdc++ memory handle and users' prx plugin
by aeolusc
Sun Oct 07, 2007 12:36 am
Forum: PSP Development
Topic: problem with C++ compiling caused by build.mak
Replies: 1
Views: 1011

problem with C++ compiling caused by build.mak

original code: CFLAGS &#58;= $&#40;addprefix -I,$&#40;INCDIR&#41;&#41; $&#40;CFLAGS&#41; CXXFLAGS &#58;= $&#40;CFLAGS&#41; $&#40;CXXFLAGS&#41; ASFLAGS &#58;= $&#40;CFLAGS&#41; $&#40;ASFLAGS&#41; ifeq &#40;$&#40;PSP_FW_VERSIO...
by aeolusc
Sat Oct 14, 2006 7:06 pm
Forum: PSP Development
Topic: Graphics Library for 2.71 se?
Replies: 8
Views: 3330

if you wanna allocate 8MB memory for libc use in prx module, just write following line right after PSP_MODULE_INFO:
PSP_HEAP_SIZE_KB(1024 * 8);
by aeolusc
Sat Oct 14, 2006 1:54 pm
Forum: PSP Development
Topic: Graphics Library for 2.71 se?
Replies: 8
Views: 3330

Use macro PSP_HEAP_SIZE_KB to pre-allocate memory for libc use in prx module.