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.
It sounds like you want a C++ compiler that outputs PBASIC as its object code. No such beast exists that I know of.
I smell a new project! And people said they didn’t have any new ideas…
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.
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.
Well, that’s what Matt Rizzo said. He says that he uses C++ then converts the file to something that the robot can understand.
*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?
The only problem with that is, he’s not registered to Chief Delphi and I haven’t seen him online lately.
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.
Ok, I’ll try to get Matt to register to Chief Delphi so he can explain.