Find the answer to your Linux question:
Results 1 to 9 of 9
Is everything in linux programmed in C? I was just wondering. Thanks!...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined! azezpz1's Avatar
    Join Date
    Jul 2006
    Location
    Houston, TX
    Posts
    98

    Is everything in linux programmed by C


    Is everything in linux programmed in C? I was just wondering. Thanks!

  2. #2
    Linux Guru techieMoe's Avatar
    Join Date
    Aug 2004
    Location
    Texas
    Posts
    9,496
    That depends on what you mean by "everything in Linux"? The Linux kernel and most of the key GNU utilities (such as ls, cat, rm, mv, cd, vi, emacs, make) were programmed in C, but an awful lot of other software for Linux is written in C++, Perl, Python, and Java. I'm sure there are quite a few applications (or parts of them) that also still use X86 assembler code.
    Registered Linux user #270181
    TechieMoe's Tech Rants

  3. #3
    Linux Enthusiast
    Join Date
    Aug 2006
    Posts
    631
    The kernel is programmed in C and Assembler.

    Franklin

  4. #4
    Just Joined! azezpz1's Avatar
    Join Date
    Jul 2006
    Location
    Houston, TX
    Posts
    98
    Ok, I was just wondering if it was required that everything be programmed in C or something. Thanks!

  5. #5
    Linux Guru techieMoe's Avatar
    Join Date
    Aug 2004
    Location
    Texas
    Posts
    9,496
    Quote Originally Posted by azezpz1
    Ok, I was just wondering if it was required that everything be programmed in C or something. Thanks!
    One of the nice things (or not nice things, depending on your side) about Linux is that there really are no requirements on anything. You're welcome to make a Linux program in COBOL if you so desire. No one's stopping you.
    Registered Linux user #270181
    TechieMoe's Tech Rants

  6. #6
    Linux Newbie framp's Avatar
    Join Date
    Jul 2006
    Location
    Stuttgart, Germany
    Posts
    240
    Quote Originally Posted by techieMoe
    You're welcome to make a Linux program in COBOL if you so desire. No one's stopping you.
    There is a COBOL compiler available for Linux so a COBOL program can be written or ported to Linux. But I've never seen any commercial COBOL program from mainframes ported and run on Linux
    "Really, I'm not out to destroy Microsoft. That will just be a completely unintentional side effect." Linus Benedict Torvalds

  7. #7
    Linux Newbie X.Cyclop's Avatar
    Join Date
    May 2006
    Location
    Israel
    Posts
    143
    Quote Originally Posted by Franklin52
    The kernel is programmed in C and Assembler.
    Which assembler? FASM, NASM, GAS...?
    "Don't think about the work, think about the benefit"

    Leonardo Juszkiewicz

  8. #8
    Linux User
    Join Date
    Oct 2004
    Location
    /dev/random
    Posts
    404
    Quote Originally Posted by X.Cyclop
    Which assembler? FASM, NASM, GAS...?
    The ASM part of linux uses GAS syntax...
    Check out this comment:
    http://lxr.linux.no/source/arch/i386/boot/setup.S#L33
    and of course the source of the file
    The Unforgiven
    Registered Linux User #358564

  9. #9
    Linux Newbie X.Cyclop's Avatar
    Join Date
    May 2006
    Location
    Israel
    Posts
    143
    Quote Originally Posted by the_unforgiven
    The ASM part of linux uses GAS syntax...
    Check out this comment:
    http://lxr.linux.no/source/arch/i386/boot/setup.S#L33
    and of course the source of the file


    Thanks.
    "Don't think about the work, think about the benefit"

    Leonardo Juszkiewicz

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •