To C++ or not to C++ | developer.brewmp.com To C++ or not to C++ | developer.brewmp.com

Developer

To C++ or not to C++

Forums:

Hello!

I would like to know how many of you are using C++ in your projects.

I learn C++ for desktops for years, and would like to use this experience on developping BREW games.

In BREW, C++ programs are really slower than "pure"C?

Is there some "recipe" that tells how to use C++ in BREW efficiently?

There are some free C++ compiler for BREW that generates code for the handsets?

Thanks for any tips!

Quote:I learn C++ for desktops for years, and would like to use this experience on developping BREW games.
- Certianly, you can use C++.
Quote:In BREW, C++ programs are really slower than "pure"C?
- What is your measurement parameter? This is a classical debate issue. A properly written C++ code is comparable with C code. As far I know there is no such serious problem.
Quote:Is there some "recipe" that tells how to use C++ in BREW efficiently?
-There is nothing specific for BREW.
Quote:There are some free C++ compiler for BREW that generates code for the handsets?
-There are two compilers currently available for BREW ARM device
1. RVCT from ARM: Paid version
2. GCC: Free.
Some people in this forum claimed that binary created by using RVCT is smaller and faster than that of binary created by using GCC. I don't have any specific number, you need to verify that.
ruben

Quote:I learn C++ for desktops for years, and would like to use this experience on developping BREW games.
- Certianly, you can use C++.
Quote:In BREW, C++ programs are really slower than "pure"C?
- What is your measurement parameter? This is a classical debate issue. A properly written C++ code is comparable with C code. As far I know there is no such serious problem.
Quote:Is there some "recipe" that tells how to use C++ in BREW efficiently?
-There is nothing specific for BREW.
Quote:There are some free C++ compiler for BREW that generates code for the handsets?
-There are two compilers currently available for BREW ARM device
1. RVCT from ARM: Paid version
2. GCC: Free.
Some people in this forum claimed that binary created by using RVCT is smaller and faster than that of binary created by using GCC. I don't have any specific number, you need to verify that.
ruben

C++ works just fine.
ADS Compiler ($1500) seems to generate the best code size wise.
GNU free, but the generated code is larger than what the ADS can generate.
Quote:Originally posted by josemarin
Hello!
I would like to know how many of you are using C++ in your projects.
I learn C++ for desktops for years, and would like to use this experience on developping BREW games.
In BREW, C++ programs are really slower than "pure"C?
Is there some "recipe" that tells how to use C++ in BREW efficiently?
There are some free C++ compiler for BREW that generates code for the handsets?
Thanks for any tips!

C++ works just fine.
ADS Compiler ($1500) seems to generate the best code size wise.
GNU free, but the generated code is larger than what the ADS can generate.
Quote:Originally posted by josemarin
Hello!
I would like to know how many of you are using C++ in your projects.
I learn C++ for desktops for years, and would like to use this experience on developping BREW games.
In BREW, C++ programs are really slower than "pure"C?
Is there some "recipe" that tells how to use C++ in BREW efficiently?
There are some free C++ compiler for BREW that generates code for the handsets?
Thanks for any tips!

Is there any sample on how to create a C++ BREW game?

Is there any sample on how to create a C++ BREW game?

In the Appendix of "Wireless Game Development in C/C++ with BREW" by Ralph Barbagallo he covers a basic C++ applet.

In the Appendix of "Wireless Game Development in C/C++ with BREW" by Ralph Barbagallo he covers a basic C++ applet.

This article might help.

This article might help.