473,324 Members | 1,646 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,324 software developers and data experts.

option in gcc that lets us produce object code for 16-bit processor

I was just curious to know whether there is an option within the gcc
compiler that lets us produce object code for 16-bit processor, while
we are working on 32-bit machines.

Jul 23 '06 #1
10 1625
In article <11*********************@s13g2000cwa.googlegroups. com>,
chandanlinster <ch************@gmail.comwrote:
>I was just curious to know whether there is an option within the gcc
compiler that lets us produce object code for 16-bit processor, while
we are working on 32-bit machines.
Yes, No, Maybe.

If you need assistance with gcc itself, you should ask in one of the
gnu newsgroups.

Generally speaking, gcc does support cross-compiling even
between completely different systems, but it isn't been universally
ported yet, so without further information from you we wouldn't
be able to tell you whether it is supported on -your- "32 bit machine"
or whether it supports -your- "16 bit processor".
--
Programming is what happens while you're busy making other plans.
Jul 23 '06 #2
chandanlinster (in
11*********************@s13g2000cwa.googlegroups.c om) said:

| I was just curious to know whether there is an option within the gcc
| compiler that lets us produce object code for 16-bit processor,
| while we are working on 32-bit machines.

Yes - take a look at the gcc documentation for target processor
options.

--
Morris Dovey
DeSoto Solar
DeSoto, Iowa USA
http://www.iedu.com/DeSoto
Jul 23 '06 #3

chandanlinster wrote:
I was just curious to know whether there is an option within the gcc
compiler that lets us produce object code for 16-bit processor, while
we are working on 32-bit machines.
Assuming you mean 8086 like 16-bit then the answer is no. As far as I
know the public GCC archives do not target it.

Cygnus does offer GCC based compilers [or they used to at least] for
various 8 and 16-bit platforms which most likely included the 8086 [186
and 286, etc] but they're not free.

To answer the question in general ... others have answered it. To sum
up, GCC is often used as a "cross-compiler" which means you build for a
TARGET platform which is not your HOST platform. GCC is a bit weirder
that it also has a BUILD platform. That is, you can build a cross
compiler on platform A, to run on platform B and build code for
platform C. [my apologies if I got the names mixed up].

Tom

Jul 23 '06 #4
"Tom St Denis" <to********@gmail.comwrites:
chandanlinster wrote:
>I was just curious to know whether there is an option within the gcc
compiler that lets us produce object code for 16-bit processor, while
we are working on 32-bit machines.

Assuming you mean 8086 like 16-bit then the answer is no. As far as I
know the public GCC archives do not target it.

Cygnus does offer GCC based compilers [or they used to at least] for
various 8 and 16-bit platforms which most likely included the 8086 [186
and 286, etc] but they're not free.
[...]

That raises some interesting licensing questions which are, of course,
completely off-topic here.

Followups redirected. If you want to discuss it further, try
gnu.misc.discuss or misc.int-property.

--
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.
Jul 23 '06 #5
Keith Thompson wrote:
That raises some interesting licensing questions which are, of course,
completely off-topic here.

Followups redirected. If you want to discuss it further, try
gnu.misc.discuss or misc.int-property.
For someone who complains about the nasty and rude behaviours of
others, you certainly are no shining example of maturity.

I'm sorry you don't like the regulars here [which I'm not really one
of] but that's no reason to reply to everything with childish
hostility.

Tom

Jul 23 '06 #6
"Tom St Denis" <to********@gmail.comwrites:
Keith Thompson wrote:
>That raises some interesting licensing questions which are, of course,
completely off-topic here.

Followups redirected. If you want to discuss it further, try
gnu.misc.discuss or misc.int-property.

For someone who complains about the nasty and rude behaviours of
others, you certainly are no shining example of maturity.

I'm sorry you don't like the regulars here [which I'm not really one
of] but that's no reason to reply to everything with childish
hostility.
No rudeness or hostility was intended.

I meant exactly what I said: what you wrote upthread:

| Cygnus does offer GCC based compilers [or they used to at least] for
| various 8 and 16-bit platforms which most likely included the 8086 [186
| and 286, etc] but they're not free.

does raise some interesting licensing questions. gcc itself is
covered by the GPL. I'm not sure how a gcc based compiler can be
non-free. I'm *not* saying it can't be, I'm saying I'm not sure how.
I'm also aware of the important distinction between "free as in beer"
and "free as in speech", but I'm no expert in this field. In fact,
I'm curious myself about the details.

Since this has nothing to do with C, I didn't want to start a long
discussion of it here in comp.lang.c. I also didn't want to redirect
the thread either to gnu.misc.discuss or to misc.int-property. By
redirecting followups to /dev/null *and* explicitly mentioning in the
body of my article that followups had been redirected, I intended to
(a) discourage a long off-topic discussion here in comp.lang.c and (b)
encourage anyone interested to discuss the issue in a more appropriate
newsgroup.

I understand that redirecting to /dev/null might seem rude, an
indication that the discussion is of no value; that wasn't my intent
in this case. And of course you managed to override the redirection
yourself.

As for your "I'm sorry you don't like the regulars here", I have no
idea what that's supposed to mean. Perhaps you'e confused me with
someone else.

--
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.
Jul 23 '06 #7
Keith Thompson wrote:
No rudeness or hostility was intended.

I meant exactly what I said: what you wrote upthread:

| Cygnus does offer GCC based compilers [or they used to at least] for
| various 8 and 16-bit platforms which most likely included the 8086 [186
| and 286, etc] but they're not free.

does raise some interesting licensing questions. gcc itself is
covered by the GPL. I'm not sure how a gcc based compiler can be
non-free. I'm *not* saying it can't be, I'm saying I'm not sure how.
I'm also aware of the important distinction between "free as in beer"
and "free as in speech", but I'm no expert in this field. In fact,
I'm curious myself about the details.
Well the GPL says you have to provide the source to your modifications.
It never said for free. It also never said you have to provide it to
the public either. Only to those who receive the corresponding binary.
So for instance, I could sell a copy of GCC for 300$ per seat, then to
the licensee holders send them a copy of the GPL'ed source [including
my modifications if any]. They could then turn around and productize
that but chances are they're not going to. Specifically if your
modifications are of value [e.g. hard to improve on without talent].

So it's not likely that people will copy the code and then try to
compete because they would have to be able to actually improve the
compiler in much the way Cygnus does (they contributed code back to the
public too btw).

So your "value" is that you can provide, maintain, upgrade and support
development tools. You can form a business around this provided you
can find the talent to work the product.
Since this has nothing to do with C, I didn't want to start a long
discussion of it here in comp.lang.c. I also didn't want to redirect
the thread either to gnu.misc.discuss or to misc.int-property. By
redirecting followups to /dev/null *and* explicitly mentioning in the
body of my article that followups had been redirected, I intended to
(a) discourage a long off-topic discussion here in comp.lang.c and (b)
encourage anyone interested to discuss the issue in a more appropriate
newsgroup.
The best way to discourage a long winded off-topic thread is to not
participate in it.

See you use what we call hyperbole. You take things to an extreme to
try and make a point, all while you can BOTH reply to the OP and tell
them it's off topic politely. Instead you chime in about some moral
superiority all the other kids don't like me so I'm going to sulk about
it and cry like the child I am, bullshit.
I understand that redirecting to /dev/null might seem rude, an
indication that the discussion is of no value; that wasn't my intent
in this case. And of course you managed to override the redirection
yourself.
Yeah, your ruse didn't foil me.

Tom

Jul 23 '06 #8
Tom St Denis said:

<snip>
>
The best way to discourage a long winded off-topic thread is to not
participate in it.
For off-topic discussions to dominate the group, it is necessary only for
those who don't want them to do nothing.
See you use what we call hyperbole.
Oh, the irony.

<snip>

--
Richard Heathfield
"Usenet is a strange place" - dmr 29/7/1999
http://www.cpax.org.uk
email: rjh at above domain (but drop the www, obviously)
Jul 23 '06 #9
"Tom St Denis" <to********@gmail.comwrites:
Keith Thompson wrote:
>No rudeness or hostility was intended.

I meant exactly what I said: what you wrote upthread:

| Cygnus does offer GCC based compilers [or they used to at least] for
| various 8 and 16-bit platforms which most likely included the 8086 [186
| and 286, etc] but they're not free.

does raise some interesting licensing questions. gcc itself is
covered by the GPL. I'm not sure how a gcc based compiler can be
non-free. I'm *not* saying it can't be, I'm saying I'm not sure how.
I'm also aware of the important distinction between "free as in beer"
and "free as in speech", but I'm no expert in this field. In fact,
I'm curious myself about the details.

Well the GPL says
[snip]

I said I was curious about the details. That wasn't a request for you
to explain them *here*. If you want to start a thread in a more
appropriate newsgroup, I'll be glad to read it. If not, that's fine.
>Since this has nothing to do with C, I didn't want to start a long
discussion of it here in comp.lang.c. I also didn't want to redirect
the thread either to gnu.misc.discuss or to misc.int-property. By
redirecting followups to /dev/null *and* explicitly mentioning in the
body of my article that followups had been redirected, I intended to
(a) discourage a long off-topic discussion here in comp.lang.c and (b)
encourage anyone interested to discuss the issue in a more appropriate
newsgroup.

The best way to discourage a long winded off-topic thread is to not
participate in it.
And yet here you are.
See you use what we call hyperbole. You take things to an extreme ton
try and make a point, all while you can BOTH reply to the OP and tell
them it's off topic politely. Instead you chime in about some moral
superiority all the other kids don't like me so I'm going to sulk about
it and cry like the child I am, bullshit.
I honestly don't know (or care) what you're talking about. (Yes, now
I'm being rude.) If you're referring to something I've written in
this thread, I can only suspect that you're making it up,
intentionally or otherwise. If you're referring to other things I've
written in this newsgroup, I suggest that dragging it into this thread
is less than productive.
>I understand that redirecting to /dev/null might seem rude, an
indication that the discussion is of no value; that wasn't my intent
in this case. And of course you managed to override the redirection
yourself.

Yeah, your ruse didn't foil me.
It wasn't a ruse. It was *intended* to be obvious. You were able to
figure it out; I presume anyone else would as well. If it had been a
ruse, I wouldn't have mentioned in the body of my message that I had
redirected followups.

To summarize what I was *trying* to say upthread:

This raises some interesting questions about licensing. These
questions are not topical in this newsgroup, so I won't elaborate
here. If someone wants to discuss it, I suggest doing so in a
more appropriate newsgroup.

You seem to have some problem with that, or with me. That's just too
bad.

--
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.
Jul 23 '06 #10
chandanlinster wrote:
I was just curious to know whether there is an option within the gcc
compiler that lets us produce object code for 16-bit processor, while
we are working on 32-bit machines.
<OTThere is a GCC compiler which targets the TI MSP430 16-bit
processor and runs on supported platforms, including many 32-bit hosts.
</OT>

--
Thad
Jul 24 '06 #11

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

Similar topics

7
by: Mats | last post by:
Option Explicit does not work anymore.(?) If you put <%option explicit%> at the top of your pages (direktly after the language declaration) you should get an error for each undeclared variable....
3
by: Rithish Saralaya | last post by:
Is there a way to scroll a selected OPTION into view? I have a combination of text box and SELECT list. A user can key in text in the text box, and depending on the entry made, the respective...
2
by: bpluymer | last post by:
Hello, I have a problem with my C++ code in that my code is faster in Debug mode than in Release mode. The reason for this are calls upon routines from a C compiled lib that I am using...
8
by: Anthony Williams | last post by:
Morning all, I'm having a wee problem with a project I'm working on at the moment. I'm leading my company into producing a website, based upon Web Standards, which will be created using XHTML...
0
by: news.microsoft.com | last post by:
I have a user control with four option buttons depending which option button is pressed I store a score into session object. On the load event of a control the session object is set to 0. There is...
12
by: Doug Hill | last post by:
Please, Microsoft, update Option Explicit Option Strict barks at late binding. We love late binding. So Option Strict flags too many things. Option Explicit is misleading. It allows Dim...
3
by: Adriano | last post by:
Hello, when I try to print something, either DataGrid or from Crystal Report viever the folowing error message appears and cancels printing: Object reference not set to an instance of an...
3
by: zhangyue.zl | last post by:
For a source file ,which optimize option can make gcc generate a smaller object file,O2 or O3? Thanks!
11
by: Michael Spencer | last post by:
Announcing: compiler2 --------------------- For all you bytecode enthusiasts: 'compiler2' is an alternative to the standard library 'compiler' package, with several advantages. Improved...
4
by: Man-wai Chang | last post by:
-- iTech Consulting Co., Ltd. Expert of ePOS solutions Website: http://www.itech.com.hk (IE only) Tel: (852)2325 3883 Fax: (852)2325 8288
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.