HELP: which lang to learn for embedded device?

This is a discussion on HELP: which lang to learn for embedded device? within the Networking/Device Communication forums, part of the General Programming Boards category; Dear all, I want to port a perl script(written by me) to C or C++ for embedded device like ADSL ...

  1. #1
    Registered User
    Join Date
    Apr 2006
    Posts
    7

    HELP: which lang to learn for embedded device?

    Dear all,


    I want to port a perl script(written by me) to C or C++ for embedded device like ADSL router, IP Camera...etc. What the script does is login a server and update the IP address of a DNS record. I do not know C or C++, so which one should I learn to do the job? Is C more popular for embedded device?

    The perl scipt can be downloaded here:
    3update v0.8

    And a commnication example:
    2006-03-18 16:55:24] *** 3update 0.8 Started ***
    [2006-03-18 16:55:24]
    [2006-03-18 16:55:24] Connecting to myip server...
    [2006-03-18 16:55:24] myip_server --> 61.15.77.54

    [2006-03-18 16:55:24] Connecting to the 3domain Update Server...
    [2006-03-18 16:55:24] update_server --> miniDNS.net Update Server 0.8.1 (Build 25)
    [2006-03-18 16:55:24] update_server <-- agent 3update/0.8
    [2006-03-18 16:55:24] update_server --> OK Agent accepted
    [2006-03-18 16:55:24] update_server <-- version
    [2006-03-18 16:55:24] update_server --> OK 0.8.1
    [2006-03-18 16:55:24] update_server <-- login user1 digest-md5
    [2006-03-18 16:55:24] update_server --> CHALLENGE 138120fa8e935fc2aa0590465da036ce
    [2006-03-18 16:55:24] update_server <-- response 8943ef751bc833ed764cbef6e45e134a
    [2006-03-18 16:55:24] update_server --> OK Authenticated
    [2006-03-18 16:55:24] update_server <-- a_update online homepc.3open.org 61.15.77.54
    [2006-03-18 16:55:24] update_server --> OK HOMEPC.3OPEN.ORG mapped to 61.15.77.54
    [2006-03-18 16:55:24] homepc.3open.org mapped to 61.15.77.54
    [2006-03-18 16:55:24] update_server <-- exit
    [2006-03-18 16:55:24] update_server --> OK Bye!
    [2006-03-18 16:55:24] Disconnected from the 3domain Update Server.


    Thanks in advance,
    Michael Fung

  2. #2
    Registered User
    Join Date
    Jan 2005
    Posts
    847
    Quote Originally Posted by hkuser2001
    Is C more popular for embedded device?
    Yes. C can produce smaller, faster code since it dosen't have the same overheads as c++ and space/CPU speed is offen at a premium on an an embedded device.

    Also many people find c easier to learn first.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 4
    Last Post: 06-30-2004, 04:11 PM
  2. connecting to a serial device?
    By caefer in forum Networking/Device Communication
    Replies: 1
    Last Post: 03-12-2004, 01:29 AM
  3. Disabling a device
    By Thantos in forum Windows Programming
    Replies: 1
    Last Post: 09-18-2003, 02:54 PM
  4. Device problem
    By John22 in forum C Programming
    Replies: 0
    Last Post: 12-19-2002, 12:02 PM
  5. Advice on how to being to learn C++
    By VenomUK in forum C++ Programming
    Replies: 9
    Last Post: 05-18-2002, 02:06 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21