473,396 Members | 2,099 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,396 software developers and data experts.

Translation environment and translator

My interest in this new topic was piqued by santosh's recent posting
concerning the subject of ``diagnostic message'' here in clc.

After reading the C99 standard (``n1256.pdf''), I am unclear if the
requirements of the ``translator'' are fulfilled if a translator does
nothing more than emit appropriate diagnostics -- without taking any
additional steps that could possibly lead to an executable program.

In short, does a tool such a <platform_specific>``lint''
</platform_specificmeet the definition of a translator according the
language definition?
Aug 2 '08 #1
5 1755
Bob Nelson said:
My interest in this new topic was piqued by santosh's recent posting
concerning the subject of ``diagnostic message'' here in clc.

After reading the C99 standard (``n1256.pdf''), I am unclear if the
requirements of the ``translator'' are fulfilled if a translator does
nothing more than emit appropriate diagnostics -- without taking any
additional steps that could possibly lead to an executable program.
See 5.1.1.2(8) of that document, and also 5.1.2.3, especially section (5).
In short, does a tool such a <platform_specific>``lint''
</platform_specificmeet the definition of a translator according the
language definition?
No, it doesn't. Otherwise, so would the following DOS batch file:

@echo off
rem I'm a C compiler! No, really I am!
echo Your program (if you even have one)
echo may contain a syntax error or a
echo constraint violation. Or, on the
echo other hand, it may not. But I
echo decided in any case not to bother
echo to compile your code. HAND.
exit

--
Richard Heathfield <http://www.cpax.org.uk>
Email: -http://www. +rjh@
Google users: <http://www.cpax.org.uk/prg/writings/googly.php>
"Usenet is a strange place" - dmr 29 July 1999
Aug 2 '08 #2
Richard Heathfield wrote:
Bob Nelson said:
>After reading the C99 standard (``n1256.pdf''), I am unclear if the
requirements of the ``translator'' are fulfilled if a translator does
nothing more than emit appropriate diagnostics -- without taking any
additional steps that could possibly lead to an executable program.

See 5.1.1.2(8) of that document, and also 5.1.2.3, especially section (5).
>In short, does a tool such a <platform_specific>``lint''
</platform_specificmeet the definition of a translator according the
language definition?

No, it doesn't. Otherwise, so would the following DOS batch file:

@echo off
rem I'm a C compiler! No, really I am!
echo Your program (if you even have one)
echo may contain a syntax error or a
echo constraint violation. Or, on the
echo other hand, it may not. But I
echo decided in any case not to bother
echo to compile your code. HAND.
exit
Thanks for making this crystal clear Richard. I was guilty of taking phrases
in the standard such as ``as is'', ``abstract machine'' and forms of
implementation-defined behavior to completely illogical extremes.

How much is a support contract for your ``compiler''? :-)
Aug 2 '08 #3
On 2 Aug 2008 at 5:16, Bob Nelson wrote:
I was guilty of taking phrases in the standard such as ``as is'',
``abstract machine'' and forms of implementation-defined behavior to
completely illogical extremes.
Sounds like you've got a great career ahead of you in clc.

Aug 2 '08 #4
In article <sl*******************@nospam.invalid>,
Antoninus Twink <no****@nospam.invalidwrote:
>On 2 Aug 2008 at 5:16, Bob Nelson wrote:
>I was guilty of taking phrases in the standard such as ``as is'',
``abstract machine'' and forms of implementation-defined behavior to
completely illogical extremes.

Sounds like you've got a great career ahead of you in clc.
Excellent. Well done.

And, like most CLC regs, it sounds like any real career he might have
had is kaput, so he should fit right in around here.

Aug 2 '08 #5
Richard Heathfield schrieb:
No, it doesn't. Otherwise, so would the following DOS batch file:

@echo off
rem I'm a C compiler! No, really I am!
echo Your program (if you even have one)
echo may contain a syntax error or a
echo constraint violation. Or, on the
echo other hand, it may not. But I
echo decided in any case not to bother
echo to compile your code. HAND.
exit
*SPLURF* And it happens once again: There are dozens of coffee stains
all over my TFT. I really should not drink coffee while reading clc.

Your compiler is hilarious! ;-)

Regards,
Johannes

--
"Wer etwas kritisiert muss es noch lange nicht selber besser können. Es
reicht zu wissen, daß andere es besser können und andere es auch
besser machen um einen Vergleich zu bringen." - Wolfgang Gerber
in de.sci.electronics <47***********************@news.freenet.de>
Aug 4 '08 #6

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

Similar topics

6
by: Stephen Ferg | last post by:
I need to translate some Perl scripts into Python. When I went looking for a tool that would help automate the translation, I was rather surprised that I couldn't find anything. BridgeKeeper,...
14
by: Wade | last post by:
http://www.slate.com/id/2124561/entry/2124562/ Nice little series by Seth Stevenson for Americans daydreaming about emigration. Somewhere, anywhere ... maybe Amsterdam? I've never been to the...
7
by: Peter Eisentraut | last post by:
Greetings. The official PostgreSQL documentation has been translated to German and has been published as a book by verlag moderne industrie/mitp ("PostgreSQL: Das offizielle Handbuch", ISBN...
1
by: Eric | last post by:
Hi, I would like to know if a daemon exist to intercept Oracle queries and translate to postgresql query... I have a windows app (AccPac) that connect to an Oracle server via ODBC. I would...
1
by: YorgZero | last post by:
Hello, I need to write a DTD to XML Schema translator in C#. Is there some source code available I can start from? It does not have to be C#, it can be C, C++ or Java. Thanks Yorg
23
by: napi | last post by:
Does anybody know if there's any C99 to C89 translator out there, either free or commercial. I searched on Google but couldn't see it so far. Thanks for any tips. Napi
1
by: Robin Tucker | last post by:
I notice that although the .NET scheme for creating multi-language applications is generally very good (from the programmers point of view), it seems to be lacking in one important respect: there...
2
by: Phil C. | last post by:
Hi. I'm having trouble translating a routine to alter validation at the client and the server. A portion of the C# code is: >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>...
1
by: deegeorge | last post by:
Hi, I have a website which shows English content. I want a translator tool or webservice(like when clicking on country flag it need to translate), which will translate this content to spanish and...
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...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.