C CODE HEX

Thread Starter

camerart

Joined Feb 25, 2013
3,830
Hi,
I use BASIC as a programming language.

I have CODE written in C.
How can I compile it so I can get the HEX file from it?
Camerart.
 

Thread Starter

camerart

Joined Feb 25, 2013
3,830
Hex for which processor?
Hi A,
Your reply tells me that it's not as easy as I thought.

I'm using the Oshonsoft simulator, which compiles BASIC, into HEX that I program the PICS with.
The programmer writes in C and programmed an Arduino Nano, and I hoped that I could get the compiled HEX from the CODE.

I can't use C (lack of programming skills) but I have Aduino. I tried to compile it, but got nowhere.
C
 

AlbertHall

Joined Jun 4, 2014
12,625
The hex code for an arduino will not work on a PIC.
Your best hope is to understand what the arduino code is doing and write the function in your basic. That will not be easy if you don't know C or the way arduino code works.
 

Thread Starter

camerart

Joined Feb 25, 2013
3,830
The hex code for an arduino will not work on a PIC.
Your best hope is to understand what the arduino code is doing and write the function in your basic. That will not be easy if you don't know C or the way arduino code works.
Hi A,
I'm not really good enough to convert the C to BASIC, but I used AI to convert it, and with a bit of tweeking looks like it's near to working, but finding the missing link is quite difficult.

As I have the HW to test it on, I think I have to muddle on till it gives in:)

Thanks.
C.
 

Thread Starter

camerart

Joined Feb 25, 2013
3,830
What AI did you use?
I haven't come across anything that could do this.
Hi A,
openAI.

A thing to note, is it will try to give it's best idea of what it thinks you want, so it may give Specrum BASIC. Try again till it looks about right, and see what it's come up with.
C
 
Top