Log in

View Full Version : Converting Files


Hailfire
23-12-2002, 20:35
How do you convert a C++ file to a PBasic file? I know you can use a program called CodeWarrior but is there one I can get for free? Please help.

Greg Ross
23-12-2002, 22:42
It sounds like you want a C++ compiler that outputs PBASIC as its object code. No such beast exists that I know of.

rbayer
23-12-2002, 23:07
I smell a new project! And people said they didn't have any new ideas...

Hailfire
24-12-2002, 15:27
Well, actually, Matt Rizzo said there is a such thing. He has CodeWarrior at Oakland University but it costs $3000 to buy. Besides that, there are also many different versions of CodeWarrior. There's some for the GameCube, the PS2, the Xbox, Microsoft Visual C++ 6.0 Professional Edition, Visual Basic, etc. etc.

rbayer
24-12-2002, 15:58
I think you must be thinking of another product. Codewarrior is a compiler/IDE developed and maintained by metrowerks. It's actually where I got my custom title ("Blood, Sweat, and Code") as it is on a T-shirt they sell.

Metrowerks does make a version of CodeWarrior for embeded systems, but as far as I know it does not include support for PBASIC/Basic stamps.

Also, google turned up nothing relevent when searching for codewarrior and pbasic.

What, specifically, would be your goal here? I'm just not seeing any advantage.

Hailfire
24-12-2002, 16:00
Well, that's what Matt Rizzo said. He says that he uses C++ then converts the file to something that the robot can understand.

Greg Ross
24-12-2002, 21:56
Originally posted by Hailfire
Well, that's what Matt Rizzo said. He says that he uses C++ then converts the file to something that the robot can understand.
Can you have Matt post the information?

Hailfire
28-12-2002, 11:16
The only problem with that is, he's not registered to Chief Delphi and I haven't seen him online lately.

Neal Turett
28-12-2002, 15:23
Unless you're writing in C++ then using the tokenizer library to convert into machine code, I have no clue what Hailfire's talking about. After running a few searches on Google, I saw some discussion on how to integrate PBASIC into KDevelop, but I didn't look to closely.

Unless there's a compiler out there that converts directly from C++ to whatever machine code the RC uses, this is pretty pointless. Even if you could code in C++, all you get out of it is nicer program structure, since you're still limited by the RC's hardware limitations.

It would be nice if Hailfire or Rizzo please clarify what they're trying to do and what they're planning to get out of it.

Hailfire
28-12-2002, 18:59
Ok, I'll try to get Matt to register to Chief Delphi so he can explain.