Edit Article

Cygwin is a great program. It understands all programming languages and it's free too. You can create any program with it. Just that the problem is that cygwin is not an easy program to use but I'm going to show you how to use it.

Ad

EditSteps

  1. 1
    Type in cd projects and hit enter.
    Ad
  2. 2
    Then type in mkdir helloworld and hit enter.
  3. 3
    Type this in and after every line hit enter.
    • // Hello World - My First App for the PSP /*          
    • This program was created by (Your Name Here) on (Date Here)
    • It is a simple "Hello World" Application. */
  4. 4
    Now type this in and after every line hit enter.
    • #include
    • #include
  5. 5
    Type this in and hit enter.
    • PSP_MODULE_INFO("Hello World", 0, 1, 1);
  6. 6
    Type this in and after every line hit enter.
    • #define printf pspDebugScreenPrintf
  7. 7
    Type this in and after every line hit enter.
    • /* Exit callback */
    • int exit_callback(int arg1, int arg2, void *common) {           sceKernelExitGame();           return 0; } /* Callback thread */ int CallbackThread(SceSize args, void *argp) {           int cbid;           cbid = sceKernelCreateCallback("Exit Callback", exit_callback, NULL);           sceKernelRegisterExitCallback(cbid);           sceKernelSleepThreadCB();           return 0; } /* Sets up the callback thread and returns its thread id */ int SetupCallbacks(void) {           int thid = 0;           thid = sceKernelCreateThread("update_thread", CallbackThread, 0x11, 0xFA0, 0, 0);           if(thid >= 0) {                     sceKernelStartThread(thid, 0, 0);           }           return thid; } 8. Type this in and hit enter.int main() { 9. Type this in and after ever line hit enter. pspDebugScreenInit(); SetupCallbacks(); 10. Type this in and hit enter.printf("Hello World"); 11. Type this in and hit enter.sceKernelSleepThread(); 12. Type this in hit enter.return 0; 13. Type this in and hit enter.} 14. Type this in and after every line hit enter.TARGET = hello OBJS = main.o CFLAGS = -O2 -G0 -Wall CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti ASFLAGS = $(CFLAGS) EXTRA_TARGETS = EBOOT.PBP PSP_EBOOT_TITLE = Hello World PSPSDK=$(shell psp-config --pspsdk-path) include $(PSPSDK)/lib/build.mak 15.
  8. 8
    Then just hit enter afterwards to make an executable.   
    Ad


We could really use your help!

Can you tell us about
e-commerce?
Yes
No
e-commerce
how to start an online business
Can you tell us about
Fitbit?
Yes
No
Fitbit
different ways to charge Fitbit
Can you tell us about
product development?
Yes
No
product development
how to develop a product from start to finish
Can you tell us about
sabbaticals?
Yes
No
sabbaticals
how to plan a sabbatical
Thanks for helping! Please tell us everything you know about
...
Tell us everything you know here. Remember, more detail is better.
Tips
Provide Details.
Please be as detailed as possible in your explanation. Don't worry about formatting! We'll take care of it. For example:
Don't say: Eat more fats.
Do say: Add fats with some nutritional value to the foods you already eat. Try olive oil, butter, avocado, and mayonnaise.

Article Info

Categories: Games

Thanks to all authors for creating a page that has been read 755 times.

Did this article help you?
Yes No

Become
an Author!

Write an Article