473,386 Members | 1,867 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

a history question

Bob
Was C really the first language to be platform independent?
If yes what was the nature of other languages which were there before
C like fortran ,basic,cobol?
weren't they platform independent at that time?
what were the platform they were running on then?

greetings,
Bob
Nov 14 '05 #1
16 1394
In article <news:e8**************************@posting.google. com>
Bob <bo**********@rediffmail.com> wrote:
Was C really the first language to be platform independent?
This question is not terribly well-formed, in my opinion. The only
possible answer is "no" though.

C is not itself "platform independent". Neither, on the other hand,
is C "platform dependent" in the way (say) assembly or machine code
is. It is possible to write C programs that are portable to every
C89 or C99 (or any other particular standard) system.
If yes what was the nature of other languages which were there before
C like fortran ,basic,cobol?


It was always possible to write Fortran and COBOL programs that
would do the same thing on any standard-conforming system, as well.
C's unique (at the time) nature was that it was possible to write
complex, highly-useful programs that, while not "100% portable",
were easy to port from one system to another, even if those systems
were remarkably different from each other. For instance, "BSD
networking" systems ran on machines as dissimilar as the VAX and
the Data General Eclipse[%], with some porting work. Doing the same
in Fortran or COBOL would have been much more difficult.

[% These systems are not as different as, say, a VAX and a Symbolics
Lisp machine, or a Burroughs A-series. Both the VAX and the Eclipse
had 8-bit bytes. The Eclipse, however, had 16-bit "word" pointers
as its native pointers, and the C compiler used these for "int *"
and the like, so that "char *" to "int *" conversions used shift
instructions.]

Similarly-portable systems were constructed with Fortran as an
underlying language, but using a "preprocessor" (Ratfor). We had
these available on a Univac 1100-series machine, and whenever I
had to use that machine, I would use the "ed" editor instead of
the one built into EXEC-8.
--
In-Real-Life: Chris Torek, Wind River Systems
Salt Lake City, UT, USA (40°39.22'N, 111°50.29'W) +1 801 277 2603
email: forget about it http://web.torek.net/torek/index.html
Reading email is like searching for food in the garbage, thanks to spammers.
Nov 14 '05 #2
In <e8**************************@posting.google.com > bo**********@rediffmail.com (Bob) writes:
Was C really the first language to be platform independent?
Nope, it was a relatively late comer to the world of high level
programming languages.
If yes what was the nature of other languages which were there before
C like fortran ,basic,cobol?
FORTRAN was the first high level language of any relevance. It predates
C by about 15 years.
weren't they platform independent at that time?
All high level languages are, by definition, platform independent. This
is what makes them HLLs in the first place, even if some are higher level
than the others.
what were the platform they were running on then?


Far too many to be enumerated here. FORTRAN was implemented on
practically any hosted platform of historical relevance (postdating its
inception).

Dan
--
Dan Pop
DESY Zeuthen, RZ group
Email: Da*****@ifh.de
Currently looking for a job in the European Union
Nov 14 '05 #3


Bob wrote:

Was C really the first language to be platform independent?
If yes what was the nature of other languages which were there before
C like fortran ,basic,cobol?
weren't they platform independent at that time?
what were the platform they were running on then?

greetings,
Bob


Depending on what you mean by a "platform independent language," one
could say that all of the languages you mention above are platform
independent, or that none of them are - including C.

From today's most common usage of the term, none of the languages you
mention - including C - are platform independent; This means that if you
compile your program on platform A (say a PC running Windows NT), that
compiled code will not execute on platform B (say a VAX running VMS).

However, if you wrote the source code in compliance with that language's
standard (say Fortran 77, or C89, or..., then the SOURCE code is
"platform independent", meaning that you could compile it platform A and
execute that on platform A, or compile it on platform B and execute that
on platform B, etc., without any changes in the source code.
--
Fred L. Kleinschmidt
Boeing Associate Technical Fellow
Technical Architect, Common User Interface Services
M/S 2R-94 (206)544-5225
Nov 14 '05 #4
Bob wrote:
Was C really the first language to be platform independent?
No!
If yes what was the nature of other languages
which were there before C like Fortran, BASIC, COBOL?
Weren't they platform independent at that time?
What were the platform they were running on then?


I used Google

http://www.google.com/

to search for

+"History of Computing"

and I found lots of stuff.
Nov 14 '05 #5
Bob wrote:

Was C really the first language to be platform independent?
If yes what was the nature of other languages which were there
before C like fortran ,basic,cobol?
weren't they platform independent at that time?
what were the platform they were running on then?


C is actually less platform independent than many other high level
languages. It demands a machine with binary arithmetic, and with
a character set closely approaching full ASCII, for example.
However these characteristics are widely available, and C has been
ported to more systems than any other language, making it the
defacto portability standard.

In terms of portability constraints on the machinery, Pascal is
probably the most portable language of all. It can function
happily on decimal oriented machinery, and the file system
characteristics are carefully abstracted, described, and
implementable.

--
"This is a wonderful answer. It's off-topic, it's incorrect,
and it doesn't answer the question." -- Richard Heathfield

"I support the Red Sox and any team that beats the Yankees"
Nov 14 '05 #6
In <41***************@yahoo.com> CBFalconer <cb********@yahoo.com> writes:
C is actually less platform independent than many other high level
languages. It demands a machine with binary arithmetic,
Merely one that can simulate it.
and with a character set closely approaching full ASCII, for example.


When did they remove trigraphs and digraphs from the language?

The C specification is merely *optimised* for platforms with binary
arithmetic (the others were dead by the time C was designed) and a
character set containing practically all the ASCII printable characters
(all character sets not satisfying this condition have become irrelevant
long ago to the world of general purpose computing).

Dan
--
Dan Pop
DESY Zeuthen, RZ group
Email: Da*****@ifh.de
Currently looking for a job in the European Union
Nov 14 '05 #7
Da*****@cern.ch (Dan Pop) wrote:
CBFalconer wrote:
C is actually less platform independent than many other high level
languages.
It demands a character set closely approaching full ASCII, for example.


When did they remove trigraphs and digraphs from the language?


Irrelevant, only the execution character set comes under the
umbrella of portability considerations. You don't type in a
C program on your fridge..
Nov 14 '05 #8
In <84**************************@posting.google.com > ol*****@inspire.net.nz (Old Wolf) writes:
Da*****@cern.ch (Dan Pop) wrote:
CBFalconer wrote:
>C is actually less platform independent than many other high level
>languages.
>It demands a character set closely approaching full ASCII, for example.


When did they remove trigraphs and digraphs from the language?


Irrelevant, only the execution character set comes under the
umbrella of portability considerations. You don't type in a
C program on your fridge..


What is the standard function for outputting a character on your fridge?

Dan
--
Dan Pop
DESY Zeuthen, RZ group
Email: Da*****@ifh.de
Currently looking for a job in the European Union
Nov 14 '05 #9
Da*****@cern.ch (Dan Pop) wrote:
ol*****@inspire.net.nz (Old Wolf) writes:
Da*****@cern.ch (Dan Pop) wrote:
CBFalconer wrote:

>C is actually less platform independent than many other high level
>languages.
>It demands a character set closely approaching full ASCII, for example.

When did they remove trigraphs and digraphs from the language?


Irrelevant, only the execution character set comes under the
umbrella of portability considerations. You don't type in a
C program on your fridge..


What is the standard function for outputting a character on your fridge?


putchar. Of course, what the fridge does with its standard output
stream depends on the implementation; it would seem likely that
it's ignored (meaning that neither source nor execution set is a
problem in this case).
Nov 14 '05 #10
ol*****@inspire.net.nz (Old Wolf) writes:
what the fridge does with its standard output stream depends on
the implementation


Typically it leaks onto your food.
Nov 14 '05 #11
ol*****@inspire.net.nz (Old Wolf) writes:
Da*****@cern.ch (Dan Pop) wrote:
ol*****@inspire.net.nz (Old Wolf) writes:
>Da*****@cern.ch (Dan Pop) wrote:
>> CBFalconer wrote:
>>
>> >C is actually less platform independent than many other high level
>> >languages.
>> >It demands a character set closely approaching full ASCII, for example.
>>
>> When did they remove trigraphs and digraphs from the language?
>
>Irrelevant, only the execution character set comes under the
>umbrella of portability considerations. You don't type in a
>C program on your fridge..


What is the standard function for outputting a character on your fridge?


putchar. Of course, what the fridge does with its standard output
stream depends on the implementation; it would seem likely that
it's ignored (meaning that neither source nor execution set is a
problem in this case).


It's even more likely that your fridge is a freestanding
implementation (if it has a C implementation at all), and is not
required to support putchar() or anything else in <stdio.h>.

--
Keith Thompson (The_Other_Keith) ks***@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <*> <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this.
Nov 14 '05 #12
In <84**************************@posting.google.com > ol*****@inspire.net.nz (Old Wolf) writes:
Da*****@cern.ch (Dan Pop) wrote:
ol*****@inspire.net.nz (Old Wolf) writes:
>Da*****@cern.ch (Dan Pop) wrote:
>> CBFalconer wrote:
>>
>> >C is actually less platform independent than many other high level
>> >languages.
>> >It demands a character set closely approaching full ASCII, for example.
>>
>> When did they remove trigraphs and digraphs from the language?
>
>Irrelevant, only the execution character set comes under the
>umbrella of portability considerations. You don't type in a
>C program on your fridge..
What is the standard function for outputting a character on your fridge?


putchar.


Chapter and verse, please.
Of course, what the fridge does with its standard output
stream depends on the implementation;


Where does the standard require that the fridge has a standard output
stream? Chapter and verse, please.

Dan
--
Dan Pop
DESY Zeuthen, RZ group
Email: Da*****@ifh.de
Currently looking for a job in the European Union
Nov 14 '05 #13
"Old Wolf" <ol*****@inspire.net.nz> wrote in message
news:84**************************@posting.google.c om...
Da*****@cern.ch (Dan Pop) wrote:
ol*****@inspire.net.nz (Old Wolf) writes:
Da*****@cern.ch (Dan Pop) wrote:
> CBFalconer wrote:
>
> >C is actually less platform independent than many other high level> >languages.
> >It demands a character set closely approaching full ASCII, for example.>
> When did they remove trigraphs and digraphs from the language?

Irrelevant, only the execution character set comes under the
umbrella of portability considerations. You don't type in a
C program on your fridge..
What is the standard function for outputting a character on your

fridge?
putchar. Of course, what the fridge does with its standard output
stream depends on the implementation; it would seem likely that
it's ignored (meaning that neither source nor execution set is a
problem in this case).


Of course not. The refrigerator must write in crayon on construction
paper and stick it unto itself with refrigerator magnets. Placement on
said surface is based on an AI sorting algorithm that weighs importance,
size, and cutesy-ness. Uncooked macaroni is added on especially
important messages for emphasis, as is glitter and /or lace trimming
(depends on implementation).

p.s. They *hate* the name fridge for two distinct reasons; one: there is
no D in refrigerator, and two: they are the only appliance to be
diminutived.

--
Mabden
Nov 14 '05 #14
Dan Pop wrote:

In <e8**************************@posting.google.com > bo**********@rediffmail.com (Bob) writes:
Was C really the first language to be platform independent?


Nope, it was a relatively late comer to the world of high level
programming languages.
If yes what was the nature of other languages which were there before
C like fortran ,basic,cobol?


FORTRAN was the first high level language of any relevance. It predates
C by about 15 years.

[...]

I remember reading an article in an old Datamation magazine from the early
1960's showing how a COBOL program running on two computers from different
manufacturers not only compiled with no source changes, but gave identical
results on both systems.

--
+-------------------------+--------------------+-----------------------------+
| Kenneth J. Brody | www.hvcomputer.com | |
| kenbrody/at\spamcop.net | www.fptech.com | #include <std_disclaimer.h> |
+-------------------------+--------------------+-----------------------------+
Nov 14 '05 #15
Bob wrote:
Was C really the first language to be platform independent?
If yes what was the nature of other languages which were there before
C like fortran ,basic,cobol?
weren't they platform independent at that time?
what were the platform they were running on then?

greetings,
Bob
No, Bob, C is not platform independent until it cuts off the its
red-headed demonspawn: Unix. Cordially, STR
Sep 22 '06 #16

"Stan Rowlan" <in*****@invalid.netwrote in message
news:12*************@corp.supernews.com...
Bob wrote:
>Was C really the first language to be platform independent?
No, Bob, C is not platform independent until it cuts off the its
red-headed demonspawn: Unix. Cordially, STR
Q1) What would "the its" mean?

Q2) There was 72. There was '89. There was '99. Will there be an '06?
Cordially, STR
Sep 22 '06 #17

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: John Dunlop | last post by:
leegold2 wrote: > I know php is server side scripting, but say a page is rendered by php > were A = 1. Now, I want when the user clicks the back button on the > browser and sees the page...
2
by: vbfoobar | last post by:
Hello, My question is: Is there an easy mean to make Python "command history" persistent across interpreter invokations? PS: In the case the question above is not clear, I rephrase it below...
3
by: Phil Sherman | last post by:
UDB LUW (Windows) 8.1 FP9a I issued a PRUNE HISTORY 20050819 AND DELETE and was surprised to see that the archived log files were not physically deleted. The history record of the 20050818...
5
by: Raphael Bauduin | last post by:
Hi, I'm looking at the logging of a database we'll put in production soon. I've seen some posts on this list about history tables, like mentioned in...
3
by: Rafael Tejera | last post by:
I would like to create an history module to my application.. I need some advice to use a duplicate database with who, when and where fields added to that new duplicate table, or create a table...
2
by: sujith.bolar | last post by:
Hello I am using a <form method="post"to submit values to the processing agent. If the processing agent returns an error, I call the history.go(-1) or history.back() function to reload the page....
0
by: ummaria | last post by:
Hello, I have posted a question related to this problem before but I never got the full understanding of the concept. I would really appreciate if someone could help me, my deadline for the design...
0
by: Nyh | last post by:
I tried to explain the best I can but it is very difficult to do. Here it goes. I have three history tables. Teacher, student and school. School and teacher, and school and student are linked...
0
by: lemnitzer | last post by:
Full Article: http://iamthewitness.com/FreedmanFactsAreFacts.html <-------- KEY DOCUMENT Steamy Excerpts: Will you be patient with me while I review here as briefly as I can the history of...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.