Ps2Link and printf without the entire sdk
Posted: Sun Jan 04, 2009 1:36 am
Hello to all and a happy new year.
I'm using a sdk that is not the ps2dev sdk and according to how I interpreted the forums rules I am not allowed to mention here so I'll just explain what I need without actually making a full example.
So here's the deal:
Uppon creating a simple hello world appication consisting mainly of the function:
printf("Hello world\n");
an import of stdio.h
and of course the main function I already encountered my first problem:
With the ps2sdk I usually use ps2link to run the elf file and get output in the console via ps2client (in linux), I also tried xlink in windows and it works too.
But the program created with this other sdk does not seem to send it's output to ps2link and therefore I don't get anything on my computer.
I suppose it expects something else instead of ps2link and calls that (which is obviously not present - I didn't find any loaders with that sdk).
So I thought that I could manually check how ps2sdk applications communicate with ps2link when using printf and implement a (small) library that would do the same and just call ps2link_printf or something.
But before I start looking throught the ps2sdk source trying to figure out how it does that I thought to ask if someone could point me in the right direction.
By this I mainly mean if someone could tell me where to look for the info I need. Which parts (files) of the sdk.
(since the ps2dev sdk is pretty large)
Or if there is any kind of documentation describing how to interface ps2link from my ps2 app directly.
I suppose I will have to reimplement loading of files from the host as well but that comes at a later time.
Well I'm off to printing out the ps2link source code (which as far as i could see is poorly documented. so I can only hope I'll understand what it does = hours of endress fun)
Anyway thanks in advance for possible replies
I'm using a sdk that is not the ps2dev sdk and according to how I interpreted the forums rules I am not allowed to mention here so I'll just explain what I need without actually making a full example.
So here's the deal:
Uppon creating a simple hello world appication consisting mainly of the function:
printf("Hello world\n");
an import of stdio.h
and of course the main function I already encountered my first problem:
With the ps2sdk I usually use ps2link to run the elf file and get output in the console via ps2client (in linux), I also tried xlink in windows and it works too.
But the program created with this other sdk does not seem to send it's output to ps2link and therefore I don't get anything on my computer.
I suppose it expects something else instead of ps2link and calls that (which is obviously not present - I didn't find any loaders with that sdk).
So I thought that I could manually check how ps2sdk applications communicate with ps2link when using printf and implement a (small) library that would do the same and just call ps2link_printf or something.
But before I start looking throught the ps2sdk source trying to figure out how it does that I thought to ask if someone could point me in the right direction.
By this I mainly mean if someone could tell me where to look for the info I need. Which parts (files) of the sdk.
(since the ps2dev sdk is pretty large)
Or if there is any kind of documentation describing how to interface ps2link from my ps2 app directly.
I suppose I will have to reimplement loading of files from the host as well but that comes at a later time.
Well I'm off to printing out the ps2link source code (which as far as i could see is poorly documented. so I can only hope I'll understand what it does = hours of endress fun)
Anyway thanks in advance for possible replies