вот исходник: это известная hello world
// Hello World - My First App for the PSP!!!
#include <pspkernel.h> // PSP kernel functions include file.
#include <pspdebug.h> // PSP debug functions include file.
/* Set the application information. */
PSP_MODULE_INFO(“Hello World”, 0, 1, 1);
/* Define debug parameters. */
/* Replace standard C printf() function with PSP printf()
function. */
#define printf pspDebugScreenPrintf
/* Exit callback */
int exit_callback(int arg1, int arg2, void *common)
{
sceKernelExitGame(); // Exit the application.
return 0;
}
/* Callback thread */
int CallbackThread(SceSize args, void *argp)
{
// Local vars.
int cbid;
// Create the exit callback in for the PSP shell.
cbid = sceKernelCreateCallback(“Exit Callback”, exit_callback,
NULL);
sceKernelRegisterExitCallback(cbid);
// Sleep the kernel until we tell it to exit.
sceKernelRegisterExitCallback(cbid);
// Return success.
return 0;
}
/* Set up the callback thread and return the thread ID */
int SetupCallbacks(void)
{
// Local vars.
int thid = 0; /* Thread ID */
// Create the thread.
thid = sceKernelCreateThread(“update_thread”, CallbackThread,
0x11, 0xFA0, 0, 0);
if (thid >= 0)
{
sceKernelStartThread(thid, 0, 0);
}
}
/* Main Function */
int main()
{
pspDebugScreenInit();
SetupCallbacks();
printf(“Hello World!”);
sceKernelSleepThread();
// Return success.
return 0;
}
а вот и сам log:
OUT) ******************************************
OUT) Компиляция/Построение
OUT) ******************************************
OUT) Microsoft Windows XP [Версия 5.1.2600]
(С) Корпорация Майкрософт, 1985-2001.
>set PSPDEV=C:/pspdev
>set PATH=%PSPDEV%/bin;%PATH%
>C:\pspdev\bin\make.exe kxploit 2>>deberr.tmp
psp-gcc -I. -IC:/pspdev/psp/sdk/include -g -G0 -Wall -O0 -L. -LC:/pspdev/psp/sdk/lib -lpspdebug -lpspdisplay -lpspge -lpspctrl -lpspsdk -lc -lpspnet -lpspnet_inet -lpspnet_apctl -lpspnet_resolver -lpsputility -lpspuser -lpspkernel -o hello.elf
>echo 1 > OK.tmp"
>
OUT) ******************************************
OUT) Ошибки/Предупреждения ...
OUT) ******************************************
OUT) /cygdrive/c/pspdev/bin/../lib/gcc/psp/4.0.2/../../../../psp/lib/crt0.o: In function `_main':
/tmp/pspdev/pspsdk/src/startup/crt0.c:86: undefined reference to `main'
collect2: ld returned 1 exit status
make: *** [hello.elf] Error 1
ATH=%PSPDEV%/bin;%PATH%
C:\Documents and Settings\Администратор\Мои документы\Коля\PSP>C:\pspdev\bin\make.exe kxploit 2>>deberr.tmp
psp-gcc -I. -IC:/pspdev/psp/sdk/include -g -G0 -Wall -O0 -L. -LC:/pspdev/psp/sdk/lib -lpspdebug -lpspdisplay -lpspge -lpspctrl -lpspsdk -lc -lpspnet -lpspnet_inet -lpspnet_apctl -lpspnet_resolver -lpsputility -lpspuser -lpspkernel -o hello.elf
C:\Documents and Settings\Администратор\Мои документы\Коля\PSP>echo 1 > OK.tmp"
C:\Documents and Settings\Администратор\Мои документы\Коля\PSP>
OUT) Компиляция прервана !
OUT) Время компиляции: 0:00:01
Action) 25.04.2007 10:27:12 Find LIBS
DLG) 25.04.2007 10:27:12 Не найдены строки "undefined reference to ..." в окне вывода !