On Thu, Feb 3, 2011 at 6:08 PM, ÐЭvŀĽ Ĵ¡מ <waqass.da1@gmail.com> wrote:
Just an Idea--
CS 201 GDB solution by orial
C++ is not perfect
* · It does not natively support concurrency
* · Little problem tuning time-critical code, such as interrupt handlers
* · It does not provide a mechanism to deal with to interrupts etc.
* · Lack of good standard library for embedded systems. As STL simply sucks.
* · Its handling of array boundaries is poor
* · Typical C++ code tends to be a bit larger and slower
* · It has no clear, non-implementation dependent mechanism for dealing with bit-mapped registers (I don't count masking and shifting as clear).
* · C++ over-flexibility, which makes the less experience shoot him in the foot.
* The added expense is rarely prohibitive (on the order of 10-15%).
By Sakina sabir
solution of GDB cs 201
Advantages
1. Can portably make native executables for a large amount of systems that don't have any dependencies on a runtime.
2. Can natively use libraries written in C/C++ without a language translation layer (important for a large class of problems that only have C libraries)
3. Code usually runs faster (lots of caveats here)
4. Can be used to implement system pieces (Kernels, etc.)
5. Complete control over how memory and other resources are allocated and released
Disadvantages
1.it does not natively support concurrency
2. it does not provide a mechanism to deal with to interrupts etc.
3. Very complex code can get bogged down doing things that other languages take care of
4. Need to implement how resources are allocated and released
5. it has no clear, non-implementation dependent mechanism for dealing with bit-mapped registers (I don't count masking and shifting as clear).
You received this message because you are subscribed to the Google Groups "Virtual University of Pakistan" group.
To post to this group, send email to discussion_vu@googlegroups.com.
To unsubscribe from this group, send email to discussion_vu+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/discussion_vu?hl=en.
--
You received this message because you are subscribed to the Google Groups "Virtual University of Pakistan" group.
To post to this group, send email to discussion_vu@googlegroups.com.
To unsubscribe from this group, send email to discussion_vu+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/discussion_vu?hl=en.
No comments:
Post a Comment