Article View: gnu.gcc.help
Article #53564Problem with PC GCC V.1.39 (DJ'd Port)
From: Mohammad A. Rahin
Date: Tue, 29 Oct 1991 13:44
Date: Tue, 29 Oct 1991 13:44
91 lines
3430 bytes
3430 bytes
Hi all,
I am involved with a project on compacting VLSI design. The program was
originally written in C (K&R style) and I am now trying to port it to a PC.
This program takes in symbolic input (in integer form) and outputs symbolic
data also in integer form. I first tried Turbo C on the PC but ran into trouble
mainly with the size of integers (2 bytes) and also with memory restrictions.
I've recently downloaded DJ's GCC port to PC (version 1.39). The compiler runs
ok and compiled the compaction program successfully. However, the output of
the compiled program looks a bit stange. The program compact everything ok
in Y direction but, have problems while compacting in X direction. Basically
the same algorithm is used in both cases. The problem in X direction seems
to be with the overflow of integer. Here are some samples of the output data :
--------------------------------
X 0 0 0
X 1 6250 0
X 2 6250 0
X 3 11250 0
X 4 16250 0
X 5 16250 0
X 6 4410682 0 -> Wrong, should be X 6 33750 0
X 7 4415682 0 -> Wrong, should be X 7 38750 0
X 8 4420682 0 -> Wrong, should be X 8 43750 0
..........
X 20 4446182 0 -> Wrong, should be X 20 69250 0
X 21 4451432 0 -> Wrong, should be X 21 74750 0
X 22 4451432 0 -> Wrong, should be X 22 74750 0
X 23 4451432 0 -> Wrong, should be X 23 74750 0
X 24 4457682 0 -> Wrong, should be X 24 80750 0
X 25 4460182 0 -> Wrong, should be X 25 83250 0
Y 0 0 0
Y 1 2500 0
Y 2 7250 0
Y 3 16000 0
Y 4 35500 0
Y 5 55000 0
.......
Y 12 113500 0
Y 13 115000 0
Y 14 117500 0
----------------------
The correct output should be like this (taken from a run on a Sparc Station) :
----------------------
X 0 0 0
X 1 6250 0
X 2 6250 0
X 3 11250 0
X 4 16250 0
X 5 16250 0
X 6 33750 0
X 7 38750 0
X 8 43750 0
........
X 20 69250 0
X 21 74500 0
X 22 74500 0
X 23 74500 0
X 24 80750 0
X 25 83250 0
Y 0 0 0
Y 1 2500 0
Y 2 7250 0
Y 3 16000 0
Y 4 35500 0
Y 5 55000 0
.......
Y 12 113500 0
Y 13 115000 0
Y 14 117500 0
I do not want to change the source significantly, but at the same time want
to have a definite remedy. Could it be because of K&R style of writing the
code and that some fnctions are not propoerly qualified ? Any info would be
gratefully appreciated. Please if possible send me e-mail as I do not read
this news group very often.
Thanks in advance.
- Rahin
N.B. Could some one also give me the details of an anonymous ftp site form
where I could collect the documentation of DJ's GCC ? The documentation
I received are corrupted.
------------------------------------------------------------------------------
_ _ _ __ _ __
' ) ) ) / ) ' ) ) /
/ / / /--/ /--' __. /_ o ____
/ ' (_/ (_ / \_(_/|_/ /_<_/ / <_
M.A.Rahin@uk.ac.lut -> from within UK
M.A.Rahin@lut.ac.uk -> from outside UK
Technical Details
Message-ID:
<1991Oct29.134429.20870@lut.ac.uk>Path:
arc1-ca.pugleaf.net!gmdzi!zeus.ieee.org!europa.asd.contel.com!uunet!mcsun!uknet!ukc!warwick!nott-cs!lut.ac.uk!elmarShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,164efcbdc3d414db,start X-Google-Attributes: gid11318c,public X-Google-ArrivalTime: 1991-10-29 09:25:56 PST Path: arc1-ca.pugleaf.net!gmdzi!zeus.ieee.org!europa.asd.contel.com!uunet!mcsun!uknet!ukc!warwick!nott-cs!lut.ac.uk!elmar From: M.A.Rahin@lut.ac.uk (Mohammad A. Rahin) Newsgroups: gnu.gcc.help Subject: Problem with PC GCC V.1.39 (DJ'd Port) Message-ID: <1991Oct29.134429.20870@lut.ac.uk> Date: 29 Oct 91 13:44:29 GMT Reply-To: M.A.Rahin@lut.ac.uk (Mohammad A. Rahin) Organization: Loughborough University, UK. Lines: 91