opensubscriber
   Find in this group all groups
 
Unknown more information…

c : cons-discuss@gnu.org 27 December 2007 • 8:57PM -0500

W2k: cons.pl: don't know how to construct "hello"
by div.bruno

REPLY TO AUTHOR
 
REPLY TO GROUP



Hi,

cons.pl: Version 2.2
perl: w2k Version
This is perl, v5.8.8 built for MSWin32-x86-multi-thread (with 50
registered patches, see perl -V for more detail)
perl: linux Version
This is perl, v5.8.8 built for i486-linux-gnu-thread-multi

using cons under linux -> Ok
using cons under w2k -> cons.pl: don't know how to construct "hello"

after tenth of hours reading the doc and single-stepping through cons.pl
(the first time seeing perl in my life) I have found the following facts:

dir::lookup(cons.pl:2390):          my $e = $dir->{member}->{$entry};
(line number is with modified cons.pl, see below. It is on line 2389 in
original cons.pl)

$entry is 'hello' on both linux and w2k.
Under w2k the entry is not found. If you look al the liked lists, you will
see, that there is no 'hello' but a 'hello.exe'

If you insert
$entry .= '.exe'
right before line 2390 it will work correctly in w2k.

In the attachment you will find the two traces 'TraceWin' and
'TraceWinOk'. The following was inserted at line 80 of cons.pl:
'TraceWin': #undef $_exe;
'TraceWinOk': undef $_exe;
In the traces my real target is named 'ampel' and for debugging my
compiler is named 'aaa'.

Unfortunately I havent understood where the mistake is. Is it:
a) The entry in the linked list should not have the '.exe' extension, or
b) The extension should have been added before line 2390.

For me it was simpler to solve it like b). I need it to compile to a PIC
target using
sdcc (Small Device C Compiler) and gputils.

There is also the environment missing in the Construct file to have it
work
under w2k.

You will also find my Construct and modified consbm.pl in the
attachment
for information.

Maybe this will help somebody. For me now cons is fine.

Regards,
Bruno



Bookmark with:

Delicious   Digg   reddit   Facebook   StumbleUpon

opensubscriber is not affiliated with the authors of this message nor responsible for its content.