Solved

linux language

Posted on 2004-03-27
6
221 Views
Last Modified: 2010-04-22
I am just trying to find out what programming language linux uses(i.e. c, c++).  So I know where to start learning at.
Thanks,
dharing
0
Comment
Question by:dharing
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 
LVL 23

Expert Comment

by:brettmjohnson
ID: 10697530
Linux it primarily implemented in ANSI C. (with small parts of assembly language).


0
 
LVL 8

Expert Comment

by:manish_regmi
ID: 10697544
hi,
 If u are trying to make programs for linux, u can use any languages like c, c++, java, perl, fortan etc etc.
The linux kernel was programmed in c.
U can use gcc to compile programs written in most languages. I like c/c++ better.
more info here.
http://gcc.gnu.org/

regards manish
0
 
LVL 44

Accepted Solution

by:
Karl Heinz Kremer earned 50 total points
ID: 10698080
You've received two different answers. Which one is the right one depends on how one interprets your question:

Linux is only the kernel that runs on your system. This kernel is mainly written in C (and some assembler). So if you want to eventually program in kernel space, you need a very good understanding of C.
If by Linux, you mean a complete distribution (like SuSE, RedHat, Mandrake), then you find a big selection of programming languages and environments. It's probably still true that most applications are written in C or C++, but you also have scripting languages (Shell script, Perl, Python, PHP, ...), Java or languages like Lisp. But you can even find Basic programs.
At the end you can do almost anything in any language. To program in a Unix environment you need a strong background in scripting and C/C++.
It all depends on what you want to do, and which language you like best.
0
 

Expert Comment

by:ray_pro2
ID: 10882836
Your question is a bit confusing but the comment from khkremer almost answers it for you. Just to reiterate him - ' Linux is mostly coded in ANSI C, with some support from assembly language'. By saying linux, I mean only the kernel and not any complete linux distribution.

Presently a lot of languages are supported by linux. A compiler exists for almost every popular programming language on linux platform. The best among them are GNU compilers gcc which are excellent C/C++ compilers both in terms of compatibility and efficiency. C programs are obvious choices for most serious linux programmers.

Linux has no native languge - so if you are looking for one, shell script is closest to an answer. A shell program 'speaks the language of the shell' and thus in a way can be thought of as the language that 'Linux uses'(This is precise what your question reads anyway). But there are other very powerful scripting languages like PERL are also available.

If your question simply means which is the programming language I use to write programs on Linux, it can be a lot of things, most commonly C or C++. If your question means which language does the OS (actually the shell) understands - your answer is shell programming language. If none of these are what you want, consider rephrasing your question!
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Cloning a part of HDD MIPS Linux 16 123
centOS 7 GUI is now showing. 20 1,913
WiFi Router device supports GPON! 3 156
rolling back version of firefox 1 56
The purpose of this article is to fix the unknown display problem in Linux Mint operating system. After installing the OS if you see Display monitor is not recognized then we can install "MESA" utilities to fix this problem or we can install additio…
The purpose of this article is to demonstrate how we can upgrade Python from version 2.7.6 to Python 2.7.10 on the Linux Mint operating system. I am using an Oracle Virtual Box where I have installed Linux Mint operating system version 17.2. Once yo…
Finding and deleting duplicate (picture) files can be a time consuming task. My wife and I, our three kids and their families all share one dilemma: Managing our pictures. Between desktops, laptops, phones, tablets, and cameras; over the last decade…

751 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question