The ASXXXX package used by SDCC is a branch from original
ASXXX package .... the changes on this branch will not be
back ported to the main branch ... You can make the change
> -----Original Message-----
> From: sdcc-devel-admin@...
> [mailto:sdcc-devel-admin@... Behalf Of Russel
> Sent: Thursday, December 06, 2001 12:18 PM
> To: SDCC_Developers
> Subject: [sdcc-devel] Source files not in the current directory...
> I have had the opportunity to investigate this problem myself
> and have a
> proposed change to SDCCmain.c which appears to solve the problem I
> outlined. To recap the problem:
> sdcc appears to assume that source code filename will always be
> structured root.extension where root and extension have no
> full stops in
> them, i.e. a filename has only one full stop in it. This is
> fair enough
> for extension but not for root. The problem is that is some parts of
> the code the search happens from the end of the string and in other
> places the search starts from the front and in both cases looking for
> the first occurrence of full stop. Moreover, it is
> effectively assumed
> that all source files exist in the current directory, i.e.
> the directory
> of invocation of the sdcc command even though there are comments that
> try to bely this in the source code.
> As I say I have a proposed change which seems to cure this problem but
> there are two issues that arise:
> 1. The proposed change leaves srcFileName and moduleName
> with the same
> string, the root of the filename -- but in effect this was always true
> and this property has been assumed elsewhere in the code.
> Clearly there
> must have been a reason for separating these strings at some
> time in the
> 2. It appears that aslink has this same assumption that there is one
> and only one full stop in a file name. With sdcc writing the correct
> filenames into the .lnk file, aslink is taking filenames such
> as x.y.rel
> and trying to open x.rel.
> 1 is clearly something that can be answered in this forum. 2 leads to
> the question: Where is the master source of aslink held and
> is the copy
> in this CVS tree a cache or a branch? If it is a cache then clearly I
> need to fix things elsewhere. If it is a branch (or even a master) I
> will investigate a change proposal for the source in this CVS tree.
> Dr Russel Winder +44 20 7585 2200
> 41 Buckmaster Road +44 7770 465 077
> London SW11 1EN, UK russel@...