Am 24.07.19 um 20:53 schrieb Gonzalo Pérez de Olaguer Córdoba: > Hi, Philipp and Don. > > The error with the configuration words can be avoided by declaring > them 'static', as shown (but not explicitly said) in the sdcc manual. > > And to make the pic14 branch backwards compatible with the trunk with > respect to this issue, a change in src/pic14/glue.c should be made: > > - The pieces of code that handle the configuration words can be identified > looking for a call to pic14_assignConfigWordValue. > > - In trunk it appears in pic14_constructAbsMap and in emitSymbolSet. > > - In the pic14 branch only appears in pic14_constructAbsMap. It should be > removed from this function and be moved to pic14_emitRegularMap. > > I think the right way to go here should be to consider obsolete and discourage > this way to define values for the configuration words and implement it > through pragmas (as pic16 already does), and extend it to also support > ID locations.
Can you provide a patch against the pic14 branch, that implements your suggestion? Philipp
signature.asc
Description: OpenPGP digital signature
_______________________________________________ Sdcc-user mailing list Sdcc-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sdcc-user