473,668 Members | 2,487 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

What can C do and Basic V2 not?

I still don´t get it - what is the advantage of C ?

I can program anything in BASIC V2 on a C64, does C have any
advantages over BASIC V2 ?

Seems to be more cryptic than BASIC to me.
Nov 14 '05 #1
12 1445
"Ralf Dieholt" <za*******@yaho o.se> wrote in message
news:7a******** *************** ***@posting.goo gle.com...
I still don´t get it - what is the advantage of C ?
Portability, efficiency, readability, in that order.
I can program anything in BASIC V2 on a C64, does C have any
advantages over BASIC V2 ?
Yes.
Seems to be more cryptic than BASIC to me.


Then use BASIC if you wish. Or learn C. Every new language looks more
cryptic than the one you already know. This applies to natural just as well
as programming languages.
Nov 14 '05 #2
Ralf Dieholt wrote:
I still don?t get it - what is the advantage of C ?

I can program anything in BASIC V2 on a C64, does C have any
advantages over BASIC V2 ?

Seems to be more cryptic than BASIC to me.


Please don't feed this troll.

Kurt Watzka
Nov 14 '05 #3
Ralf Dieholt wrote:
I still don´t get it - what is the advantage of C ? None... Well, almost none.
I can program anything in BASIC V2 on a C64, does C have any
advantages over BASIC V2 ? see above.
Seems to be more cryptic than BASIC to me.

Well, that *is* actually the advantage of C.

Bruno

Nov 14 '05 #4
Ralf Dieholt wrote:
I still don't get it - what is the advantage of C ?
It's crunchy, courteous, and corrugated.
I can program anything in BASIC V2 on a C64,
Fabulous!
does C have any
advantages over BASIC V2 ?
No. There are some programs you can't write in C (such as, for example, a
program that can detect, for any input program, whether that program
halts). Since you can program anything in BASIC V2, I guess you have the
edge.
Seems to be more cryptic than BASIC to me.


Yeah, it's to keep the cabal happy. Don't tell anyone.
--
Richard Heathfield : bi****@eton.pow ernet.co.uk
"Usenet is a strange place." - Dennis M Ritchie, 29 July 1999.
C FAQ: http://www.eskimo.com/~scs/C-faq/top.html
K&R answers, C books, etc: http://users.powernet.co.uk/eton
Nov 14 '05 #5

"Ralf Dieholt" <za*******@yaho o.se> wrote in message

I still don´t get it - what is the advantage of C ?
It is efficient and it is expressive.
I can program anything in BASIC V2 on a C64, does C have any
advantages over BASIC V2 ?
All major programming languages are Turing equivalent, which means that
given enough memory you can emulate any with any other. It follows that you
can write a C interpreter in BASIC. However you will find a BASIC
interpreter in C runs faster and is easier to code.
Seems to be more cryptic than BASIC to me.

This is a very valid criticism. BASIC is designed to allow people who are
not full-time programmers to do some programming, and it is very good at
that job. C is designed with professionals in mind, and operations such as
indirection are very concise, because a professional computer programmer can
be presumed to understand them.
Nov 14 '05 #6
On 22 Feb 2004 03:28:56 -0800, in comp.lang.c , za*******@yahoo .se (Ralf
Dieholt) wrote:
I still don´t get it - what is the advantage of C ?
Thats like asking whats the advantage of a truck, when you already have a
mini.
I can program anything in BASIC V2 on a C64,
what, /everything/ ?
A relational database capable of storing 4GB of data?
A settlement system for government bonds?
A real-life-speed jumbo-jet-sized 3d flight simulator?

Its probable that you can program many many things in Basic, but not all of
them efficiently, and not all of them well. This is true of most languages.
C for example is not good for object oriented programming, compared to C++.
does C have any advantages over BASIC V2 ?
Will your Basic V2 work on a Vax, PC or Sparc? I suspect not.
Your (ISO compliant) C will work on all three, plus many more.

There are many other reasons, but really, its an exercise for hte reader to
work out why language Z is more useful than language Q for some things.
Seems to be more cryptic than BASIC to me.


Basic is a high level language, C is a lower level one.

--
Mark McIntyre
CLC FAQ <http://www.eskimo.com/~scs/C-faq/top.html>
CLC readme: <http://www.angelfire.c om/ms3/bchambless0/welcome_to_clc. html>
----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeed.com The #1 Newsgroup Service in the World! >100,000 Newsgroups
---= 19 East/West-Coast Specialized Servers - Total Privacy via Encryption =---
Nov 14 '05 #7

"Mark McIntyre" <ma**********@s pamcop.net> wrote in message
news:8n******** *************** *********@4ax.c om...
On 22 Feb 2004 03:28:56 -0800, in comp.lang.c , za*******@yahoo .se (Ralf
Dieholt) wrote:

does C have any advantages over BASIC V2 ?


Will your Basic V2 work on a Vax, PC or Sparc? I suspect not.
Your (ISO compliant) C will work on all three, plus many more.


I am not a professional and don't know much, but I am curious.
I assume this is only because there have been C compilers written for these
and the "many more."
When a chip company designs a new processor, is a C compiler usually
provided for programmers by the company? What about other languages? Who
is "normally" responsible for these things?
Nov 14 '05 #8
Stephen Mayes wrote:
"Mark McIntyre" <ma**********@s pamcop.net> wrote in message
news:8n******** *************** *********@4ax.c om...
On 22 Feb 2004 03:28:56 -0800, in comp.lang.c , za*******@yahoo .se (Ralf
Dieholt) wrote:
does C have any advantages over BASIC V2 ?


Will your Basic V2 work on a Vax, PC or Sparc? I suspect not.
Your (ISO compliant) C will work on all three, plus many more.

I am not a professional and don't know much, but I am curious.


Good.
I assume this is only because there have been C compilers written for these
and the "many more."
Halfway true. The other half is that the ISO standard exists to
guarantee the behavior of C programs compiled with a conformant compiler
/regardless/ of what machine the program is compiled on or for. This
standard dictates a certain group of behaviors programmers can rely
upon, whether they are writing new programs or compiling a pre-written
program for a new machine.
When a chip company designs a new processor, is a C compiler usually
provided for programmers by the company? What about other languages? Who
is "normally" responsible for these things?
The chipmaker might design a compiler for their chips, as Intel has, but
they don't always. The group "normally" responsible for these things is
whoever wants a C compiler for that machine.

The GNU Project has done a good job of porting their gcc (GNU Compiler
Collection) compiler suite to different architectures, and as the gcc
suite can act as a conformant C compiler (up to the C89 standard, I
believe), any machine for which a version of gcc exists has a conformant
C compiler.

In any case, it isn't difficult to create a compiler for a new machine
if you already have a compiler for an existing machine you can examine
the source code of. Especially if that compiler has a modular design, as
gcc does, with a language-specific front-end (which emits RTL (Register
Transfer Language)) and a machine-specific backend (which emits assembly
language). Then the problem is reduced to writing a backend.

--
My address is yvoregnevna gjragl-guerr gjb-gubhfnaq guerr ng lnubb qbg pbz
Note: Rot13 and convert spelled-out numbers to numerical equivalents.
Nov 14 '05 #9
On Sun, 22 Feb 2004 18:47:48 -0500, in comp.lang.c , "Stephen Mayes"
<st*****@DELETE themayeshouse.u s> wrote:

"Mark McIntyre" <ma**********@s pamcop.net> wrote in message
news:8n******* *************** **********@4ax. com...
On 22 Feb 2004 03:28:56 -0800, in comp.lang.c , za*******@yahoo .se (Ralf
Dieholt) wrote:
>does C have any advantages over BASIC V2 ?


Will your Basic V2 work on a Vax, PC or Sparc? I suspect not.
Your (ISO compliant) C will work on all three, plus many more.


I am not a professional and don't know much, but I am curious.
I assume this is only because there have been C compilers written for these
and the "many more."


Partly. Its because C is governed by an ISO standard, and that core of C is
guaranteed to work on all platforms for which a C compiler exists. On the
other hand I've yet to find a variant of basic that worked on any other
platform without massive alterations, and I suspect that "Basic V2" is the
same.
When a chip company designs a new processor, is a C compiler usually
provided for programmers by the company?
Thats entirely up to them,
What about other languages?
ditto
Who is "normally" responsible for these things?
whoever believes there's a commercial need for the language tools, or in
some cases whoever wants one.


--
Mark McIntyre
CLC FAQ <http://www.eskimo.com/~scs/C-faq/top.html>
CLC readme: <http://www.angelfire.c om/ms3/bchambless0/welcome_to_clc. html>
----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeed.com The #1 Newsgroup Service in the World! >100,000 Newsgroups
---= 19 East/West-Coast Specialized Servers - Total Privacy via Encryption =---
Nov 14 '05 #10

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

Similar topics

137
7066
by: Philippe C. Martin | last post by:
I apologize in advance for launching this post but I might get enlightment somehow (PS: I am _very_ agnostic ;-). - 1) I do not consider my intelligence/education above average - 2) I am very pragmatic - 3) I usually move forward when I get the gut feeling I am correct - 4) Most likely because of 1), I usually do not manage to fully explain 3) when it comes true. - 5) I have developed for many years (>18) in many different environments,...
20
3221
by: Steven T. Hatton | last post by:
I just read this in the description of how C++ is supposed to be implemented: "All external object and function references are resolved. Library components are linked to satisfy external references to functions and objects not defined in the current translation. All such translator output is collected into a program image which contains information needed for execution in its execution environment." What I'm wondering is what exactly...
5
1365
by: opistobranchia | last post by:
I know this gets asked all the time but..... I am a fresh grad. I have taken a year of java and 1/2 year of C++ and OO Design and Analysis. I have strong Java skills and I have done projects in c++. But I am pretty sure that I am getting this job as a java/C++ software engineer. I want to put out a good impression since it is with a real good company and a great opportunity for me with real smart people. What book do you rec. that I...
1
1949
by: siliconmike | last post by:
I'm starting to learn Visual Basic. My aim is to develop a small downloadable application that can store and display contacts. It has to be small (say 2 mb footprint?). Q - First, will Visual Basic give me this small footprint ? Q - What back-end database is advisable (I'm familiar with MySQL), considering that the tables will be small ? Basic goal is that the application should be universally downloadable,
3
2074
by: Sathyaish | last post by:
I wanted to practice some Linked List stuff, so I set out to create a linked list. The plan was to create the following: (1) A linked list class in Visual Basic (2) A non-class based linked list using functions in C (3) A linked list class in C++ I started with Visual Basic and I wrote an IList interface that I wanted my list to implement. When I had started, somehow I thought this time, I'd first use a collection as the ingredient,...
41
3416
by: Mountain Bikn' Guy | last post by:
What is the current preferred way to save user preferences in dotnet? Is the registry the right place to do this? Can anyone recommend a good article (or book) for this topic? Thanks.
3
1197
by: notregister | last post by:
Selected& = Device_Display.ListIndex sometime i do see $ replacing the &, what does it mean also?
50
8524
by: lovecreatesbea... | last post by:
Could you extract examples of the characteristics of C itself to demonstrate what the advantages of C are? What are its pleasant, expressive and versatile characteristics? And what are its disadvantages?
11
2484
by: Paul Brady | last post by:
Apparently, I have been living on the wrong planet. I have written 15 databases in Microsoft Access in the past 10 years, some of which are split, one uses ODBC interface with a SQL server, one has a many-to-many relationship, and all of which have Basic code to handle events and run functions which I have coded, and all this time have never heard of .Net -- until today. So, I looked it up on Google, asking for Access and .Net and got...
0
8462
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8893
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8658
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6209
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5681
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4205
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4380
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2792
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1786
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.