🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

2 total messages Started by Prince of Wales Mon, 28 Dec 1992 20:10
MCC, VHDL
#321
Author: Prince of Wales
Date: Mon, 28 Dec 1992 20:10
15 lines
987 bytes
Hi folks,

I am using the MCC compiler/simulator to compile a VHDL file. When I have
the following line in the source file, the compiler complains that the range
has to be inside the ANSI C bounds of --2147483647 to +2147483647, which is
slightly bigger than 1E05. The LRM for VHDL defines that the minimum 
acceptable limits for any compiler are -1E38 to +1E38. Is there a catch
somewhere or is it purely a limitation of the MCC system.

Thanks in advance.

-- 
ramanand@pumpkin.ece.uc.edu          home:   513 281 9870
rmandaya@uceng.uc.edu                office: 513 556 3025
mandayrv@ucunix.san.uc.edu           ham:    KB8GKL
Re: MCC, VHDL
#322
Author: Daniel S. Barclay
Date: Tue, 29 Dec 1992 10:46
41 lines
2638 bytes
mandayrv@ucunix.san.uc.edu (Prince of Wales) writes:
> I am using the MCC compiler/simulator to compile a VHDL file. When I have
> the following line in the source file, the compiler complains that the range
> has to be inside the ANSI C bounds of --2147483647 to +2147483647, which is
> slightly bigger than 1E05. The LRM for VHDL defines that the minimum 
> acceptable limits for any compiler are -1E38 to +1E38. Is there a catch
> somewhere or is it purely a limitation of the MCC system.

1.  You didn't include your following line so I can't see where you tried to
	use a range.  Was it is an integer type definition, a floating-point
	type definition, some other type definition, or somewhere else?

2.  (I assume "--" in "--2147483647" is a typo.  Is that correct, or does it
	mean something I don't recognize?)

3.  (You say that "--2147483647 to +2147483647 [...] is slightly bigger than 
	1E05."  What?  It's a _lot_ bigger than 1E05; it's a little bigger than
	1E09.  Is there a typo here I didn't recognize?)

4.  You say "The LRM for VHDL defines that the minimum acceptable limits for 
	any compiler are -1E38 to +1E38."  That may indicate some confusion.
	There are (at least) two minimums specified in the language:  The VHDL 
	1987 LRM defines that an implementation must support a minimum range 
	of -2147483647 to +2147483647 for an integer type.  It also defines a
	the minimum range of -1.0E38 to +1.0E38 for a floating-point type.
	(Yes, the LRM says 1E38 instead of 1.0E38, but the Interpretations 
	document* says that that is a typo.)

5.  I don't know if the MCC system complies with the standard or not. 
	
* (I think the title is "IEEE Standards Interpretations:  IEEE Std. 1076-1987
IEEE Standard VHDL Language Reference Manual".)

I hope this answers your question.
	
--
------------------------------------------------------------------------------
Daniel S. Barclay                    --who's still searching for a good 
CAD Language Systems, Inc.           signature, not liking any of his recent
Suite 101, 5457 Twin Knolls Rd.      feeble attempts to improve on the whiny:
Columbia, MD  21045  USA             Why can't _I_ think of a good signature?
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads