HP Forums
my problem - Printable Version

+- HP Forums (https://www.hpmuseum.org/forum)
+-- Forum: HP Calculators (and very old HP Computers) (/forum-3.html)
+--- Forum: General Forum (/forum-4.html)
+--- Thread: my problem (/thread-6229.html)



my problem - #ich - 05-09-2016 08:03 PM

Hi to all

my name is Matteo and i'm writing from Italy. Maybe someone can help me

I used about a long time and "old" HP48GX and i always make USRRPL language to programming it.

Recently i discover HP48XGCC, a GCC cross linker for Saturn processor and i think "wow i can program my hp with it as i do with my 50G (and TI89 LOL)"

I'm very happy but... it don't work...

I download the right .zip file (compiled with .bin) and i tried to use it on LINUX, MAC, Win (with cygwin) but nothing, i always have some error.

Someone of you have never used it? or have some problem?

Please help me

thanks

Matteo


RE: my problem - Alejandro Paz(Germany) - 05-10-2016 12:25 PM

Could you please be a bit more specific:

- Which file ? from where ? what does it contain ?
- Which version have you tried ? on which operating system.
- Which error ?


RE: my problem - roadrunner - 05-10-2016 03:18 PM

He may be talking about this:

http://hp48xgcc.sourceforge.net/

or some other, similar software. I couldn't say for sure.

-road


RE: my problem - #ich - 05-10-2016 06:12 PM

(05-10-2016 03:18 PM)roadrunner Wrote:  He may be talking about this:

http://hp48xgcc.sourceforge.net/

or some other, similar software. I couldn't say for sure.

-road

Yes I talking about it... Nobody never used it in the past? I know it's a long time ago...


RE: my problem - Alejandro Paz(Germany) - 05-10-2016 06:51 PM

Instead of keeping us guessing, tell us what did you try, what did not work and which error messages did you get...


RE: my problem - #ich - 05-10-2016 07:53 PM

(05-10-2016 06:51 PM)Alejandro Paz(Germany) Wrote:  Instead of keeping us guessing, tell us what did you try, what did not work and which error messages did you get...

ok i make a screenshot of the error

What is ENOENT error? and why i can't execute CPP? and what is CPP?

I tried to find something in internet but i can't find nothing... I think that i put my .c program into a wrong directory


RE: my problem - jch - 05-10-2016 08:35 PM

(05-10-2016 07:53 PM)#ich Wrote:  ok i make a screenshot of the error

What is ENOENT error? and why i can't execute CPP? and what is CPP?

I tried to find something in internet but i can't find nothing... I think that i put my .c program into a wrong directory
Hello Matteo,

CPP is an acronym for the C PreProcessor, a component of gcc.
Did you read the manual page ?
From your screenshot, it seems that you're lacking some linux environment.
"Make sure you have GNU Make. Unfortunatelly, if you're a Windows95 user this can take some work to accomplish (start at http://www.cygnus.com/gnu-win32)."
Well, the URL is no longer valid, but you may give a try to Cygwin (with gcc & make packages) ?


RE: my problem - Alejandro Paz(Germany) - 05-11-2016 03:52 AM

I find that the way you invoked the compiler a bit strange:

In the manual they recommend you have a /usr directory at the top of the C drive. You can also try MinGW instead of cygwin.
The -O option (Optimization level) needs a switch like 's' for size, or '0' for none, or '2' for optimize more (-O2 is what the manual recommends)

try it like this (assuming that xgcc is in the PATH and Residuo_secco.c is in the current directory):

xgcc -O2 Residuo_secco.c -o Residuo_secco

btw: ENOENT means file not found.


RE: my problem - #ich - 05-12-2016 07:50 PM

(05-11-2016 03:52 AM)Alejandro Paz(Germany) Wrote:  I find that the way you invoked the compiler a bit strange:

In the manual they recommend you have a /usr directory at the top of the C drive. You can also try MinGW instead of cygwin.
The -O option (Optimization level) needs a switch like 's' for size, or '0' for none, or '2' for optimize more (-O2 is what the manual recommends)

try it like this (assuming that xgcc is in the PATH and Residuo_secco.c is in the current directory):

xgcc -O2 Residuo_secco.c -o Residuo_secco

btw: ENOENT means file not found.


Hi

thank you for your help.

You give me some ideas and i started to do some test but nothing working

BUT

I found it:

http://www.hpcalc.org/hp48/pc/programming/htrxgcc.zip

this document explain how use XGCC 48 into WIN3.11 (LOL). Here i found the solution and now it's all OK!!!

PS: the original manual DO NOT EXPLAIN the correct procedure because don't talk about -lcore command. I think in the past other people had my problem...


RE: my problem - Hans Brueggemann - 05-13-2016 07:13 AM

great! anything to watch out, or did it just work out as presented in the document?