Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. C or C++ for customized embedded Linux, which is the best and why?

C or C++ for customized embedded Linux, which is the best and why?

Scheduled Pinned Locked Moved C / C++ / MFC
c++designsysadminlinuxhardware
12 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Abdullah A _Mohamed

    I aim to build a network system like router or firewall based on customized embedded Linux. about the memory and stack, I will use embedded appliance like ARM boards or Atom not a simple Micro-controller or processor. which lang. you advice me to use C or C++? . I will use YOCTO Project to help me do that. I built a similar network system.it was a network IDS but, it was based on xPC Target Kernel. Now, I wish to use an Embedded Linux. the system must do the basic task, so no many options. I have an experience in C and C++ but under DOS not Linux. C++ has the many options make the system design is easier but I fare the compatibility if I used it in embedded Linux. So any advice?

    CPalliniC Offline
    CPalliniC Offline
    CPallini
    wrote on last edited by
    #2

    Abdullah A._Mohamed wrote:

    C++ has the many options make the system design is easier but I fare the compatibility if I used it in embedded Linux. So any advice?

    I bet on C++: Linux usually provides g++ that is a very good C++ compiler. By the way, could you please delete your duplicate post?

    In testa che avete, signor di Ceprano?

    Richard DeemingR A 2 Replies Last reply
    0
    • CPalliniC CPallini

      Abdullah A._Mohamed wrote:

      C++ has the many options make the system design is easier but I fare the compatibility if I used it in embedded Linux. So any advice?

      I bet on C++: Linux usually provides g++ that is a very good C++ compiler. By the way, could you please delete your duplicate post?

      Richard DeemingR Offline
      Richard DeemingR Offline
      Richard Deeming
      wrote on last edited by
      #3

      CPallini wrote:

      By the way, could you please delete your duplicate post?

      It's not just a duplicate post - he's created two accounts as well! :doh:


      "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer

      "These people looked deep within my soul and assigned me a number based on the order in which I joined" - Homer

      CPalliniC A 2 Replies Last reply
      0
      • Richard DeemingR Richard Deeming

        CPallini wrote:

        By the way, could you please delete your duplicate post?

        It's not just a duplicate post - he's created two accounts as well! :doh:


        "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer

        CPalliniC Offline
        CPalliniC Offline
        CPallini
        wrote on last edited by
        #4

        Wait, maybe we have a replicant! :omg:

        In testa che avete, signor di Ceprano?

        1 Reply Last reply
        0
        • A Abdullah A _Mohamed

          I aim to build a network system like router or firewall based on customized embedded Linux. about the memory and stack, I will use embedded appliance like ARM boards or Atom not a simple Micro-controller or processor. which lang. you advice me to use C or C++? . I will use YOCTO Project to help me do that. I built a similar network system.it was a network IDS but, it was based on xPC Target Kernel. Now, I wish to use an Embedded Linux. the system must do the basic task, so no many options. I have an experience in C and C++ but under DOS not Linux. C++ has the many options make the system design is easier but I fare the compatibility if I used it in embedded Linux. So any advice?

          A Offline
          A Offline
          Albert Holguin
          wrote on last edited by
          #5

          Abdullah A._Mohamed wrote:

          I fare the compatibility if I used it in embedded Linux

          C++ is used pretty extensively in embedded Linux. This is more of a matter of preference, you should be able to easily find supporting libraries for both, but I'd imagine that you'd find quite a bit more for C++... so that may be the easiest route.

          A CPalliniC 2 Replies Last reply
          0
          • CPalliniC CPallini

            Abdullah A._Mohamed wrote:

            C++ has the many options make the system design is easier but I fare the compatibility if I used it in embedded Linux. So any advice?

            I bet on C++: Linux usually provides g++ that is a very good C++ compiler. By the way, could you please delete your duplicate post?

            A Offline
            A Offline
            Abdullah A _Mohamed
            wrote on last edited by
            #6

            thank you Pallini, its not a duplicated but I am a new here and I login using my other accounts like face and g+ So, it seems two accounts is made and I put the Q on the two accounts. sorry.

            CPalliniC 1 Reply Last reply
            0
            • Richard DeemingR Richard Deeming

              CPallini wrote:

              By the way, could you please delete your duplicate post?

              It's not just a duplicate post - he's created two accounts as well! :doh:


              "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer

              A Offline
              A Offline
              Abdullah A _Mohamed
              wrote on last edited by
              #7

              I am a new her and I login using my other accounts like face and g+ So, it seems two accounts is made and I put the Q on the two accounts. sorry.

              1 Reply Last reply
              0
              • A Albert Holguin

                Abdullah A._Mohamed wrote:

                I fare the compatibility if I used it in embedded Linux

                C++ is used pretty extensively in embedded Linux. This is more of a matter of preference, you should be able to easily find supporting libraries for both, but I'd imagine that you'd find quite a bit more for C++... so that may be the easiest route.

                A Offline
                A Offline
                Abdullah A _Mohamed
                wrote on last edited by
                #8

                Albert Holguin, thank you, I hope that.

                A 1 Reply Last reply
                0
                • A Abdullah A _Mohamed

                  thank you Pallini, its not a duplicated but I am a new here and I login using my other accounts like face and g+ So, it seems two accounts is made and I put the Q on the two accounts. sorry.

                  CPalliniC Offline
                  CPalliniC Offline
                  CPallini
                  wrote on last edited by
                  #9

                  Oh, that is no problem at all, for me. You are welcome. :)

                  In testa che avete, signor di Ceprano?

                  1 Reply Last reply
                  0
                  • A Albert Holguin

                    Abdullah A._Mohamed wrote:

                    I fare the compatibility if I used it in embedded Linux

                    C++ is used pretty extensively in embedded Linux. This is more of a matter of preference, you should be able to easily find supporting libraries for both, but I'd imagine that you'd find quite a bit more for C++... so that may be the easiest route.

                    CPalliniC Offline
                    CPalliniC Offline
                    CPallini
                    wrote on last edited by
                    #10

                    Don't know why someone downvoted this, have my upvote.

                    In testa che avete, signor di Ceprano?

                    A 1 Reply Last reply
                    0
                    • CPalliniC CPallini

                      Don't know why someone downvoted this, have my upvote.

                      A Offline
                      A Offline
                      Albert Holguin
                      wrote on last edited by
                      #11

                      Thanks Carlo... probably somebody who doesn't know what they're talking about. I'm actually right in the middle of implementing a bunch of C++ on an ARM processor. Cross-compiling is your friend. :)

                      1 Reply Last reply
                      0
                      • A Abdullah A _Mohamed

                        Albert Holguin, thank you, I hope that.

                        A Offline
                        A Offline
                        Albert Holguin
                        wrote on last edited by
                        #12

                        See my response to Carlo's message below.

                        1 Reply Last reply
                        0
                        Reply
                        • Reply as topic
                        Log in to reply
                        • Oldest to Newest
                        • Newest to Oldest
                        • Most Votes


                        • Login

                        • Don't have an account? Register

                        • Login or register to search.
                        • First post
                          Last post
                        0
                        • Categories
                        • Recent
                        • Tags
                        • Popular
                        • World
                        • Users
                        • Groups