Object Oriented Programming (OOP) with ICCv7
Peter Verkaik
Posts: 3,956
Hi,
Attached is a working example using C+ from Quantum Leap
http://www.state-machine.com/devzone/cookbook.htm#OOP
(scroll to bottom of page)
Create folder cplus in ICCv7 install directory and unzip in that folder.
Open project <ICCv7_install_path>\cplus\cplustst\win32\cplustst.prj
main.c is the example application program.
I had to add a dummy putchar() to make it compile
and create output files in folder win32\output
The manual is located in the cplus folder.
Looks like this should provide OOP without too much overhead.
The original zip from the link above is included.
regards peter
Attached is a working example using C+ from Quantum Leap
http://www.state-machine.com/devzone/cookbook.htm#OOP
(scroll to bottom of page)
Create folder cplus in ICCv7 install directory and unzip in that folder.
Open project <ICCv7_install_path>\cplus\cplustst\win32\cplustst.prj
main.c is the example application program.
I had to add a dummy putchar() to make it compile
and create output files in folder win32\output
The manual is located in the cplus folder.
Looks like this should provide OOP without too much overhead.
The original zip from the link above is included.
regards peter
zip
957K
Comments
(not related to C+ however)
http://www.planetpdf.com/codecuts/pdfs/ooc.pdf
regards peter
That should·output text via propeller pins 30 and 31.
There is a·cplustst.exe in folder
<icc_path>\cplus\cplustst\dosb1\release
Excuting the cplustst.exe from a dosbox you get output:
·The output from the propeller should be the Hello world part, followed by the above,
and then whatever you type should be echoed.
Here is the adapted main.c
regards peter
Post Edited (Peter Verkaik) : 11/6/2008 4:28:30 PM GMT