Results 1 to 3 of 3

Thread: C or C++

  1. #1

    Default C or C++


    hi mga fellow istoryans and mga programmers dra.. ask ta ko wat jd nindot na language gamiton kung maghisgot ta ug embedded systems, (e.g. mga microcontroller of microprocessors).. could you also highlight pd mga strengths and weaknesses sa kani na duha ka language in terms sa kani na field. . uhmm... ask lang ta ko base sa in.u experiences, mas maau kanang narelate jd sa in.u trabaho jd..tnx mga bossing.

  2. #2

    Default Re: C or C++

    actually dpendi na sa imo demand sa embedded systems.

    kay for example you guys are making "Application" side sa FW, the one that is on the highest layer then either C or C++ is ok,

    on the other hand, if you are writing device drivers, like let say for example in (embedded) Linux,
    the device driver should be writen in C since their driver is model and also its kernel are written in C.
    But some drivers like in Windows can be written in C++ like that of GDI drivers like Video or Printer drivers.

    pero balik ghapon ta sa practical usage.

    You dont really need the power of C++ like classes, templates, STL, etc while writing low-level applications that access registers, phyiscal devices,etc , its most practical to use C.
    C++ will cost much in terms of speed and code size because of additional overheads, vtables arrays (for classes), type checking routines, etc.

    But it can be someout practical to write in C++ if you are writing middleware and the FW app itself.
    But again

    "Small and simple code for which is REQUIRED for embedded systems is a must" less binary size, less overhead which results to faster execution time, is a necessity in these systems.

    always remember that embedded systems has limited IO memory and CPU speed compare to PC.
    Last edited by cebugdev; 07-07-2011 at 08:05 AM.

  3. #3

    Default Re: C or C++

    C ko brod.. dili na ma create ang C++ kung wala ang C..mahimo nag ++, ang Cobol -> obol na lang.. Visual Basic, Visual Basi na lang..

    for embedded systems go for C++

  4.    Advertisement

Similar Threads

 
  1. cats or dogs?
    By eCpOnO in forum General Discussions
    Replies: 322
    Last Post: 01-07-2019, 07:58 AM
  2. McDonald's or Jollibee and Why?
    By eCpOnO in forum Food & Dining
    Replies: 2179
    Last Post: 09-28-2017, 01:17 PM
  3. AMD or INTEL
    By CrasHBURN in forum Computer Hardware
    Replies: 823
    Last Post: 01-27-2010, 08:03 AM
  4. blades or board???
    By jimboi in forum Sports & Recreation
    Replies: 50
    Last Post: 05-11-2009, 04:13 PM
  5. Swirly Bitz or McFLURRY ? ? ?
    By b0L3r0 in forum Food & Dining
    Replies: 92
    Last Post: 01-06-2007, 09:57 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
about us
We are the first Cebu Online Media.

iSTORYA.NET is Cebu's Biggest, Southern Philippines' Most Active, and the Philippines' Strongest Online Community!
follow us
#top