On 03.07.2013 07:09, Duncan Bayne wrote:
>> As far as I know it can't natively manage banked RAM for the Z80 since
>> there is no standard Z80 way of doing it; it is all system specific.
> 
> If I were to implement a system-specific malloc for the Amstrad CPC
> series, that was aware of bank-switching and made use of it, would that
> be something of interest to SDCC?  
> 
> Is there a mechanism for platform-specific (as opposed to CPU-specific)
> features within the codebase ... some sort of contrib mechanism?  Or
> would I be better off implementing this as a standalone library that
> Amstrad developers could link as required?
> 

No, system-specific stuff is outside the scope of sdcc. You might want
to have a look at z88dk for that. z88dk is a project that emphasizes
system support for z80-based systems. Their compiler is worse than sdcc
though (in terms of generated code size, feature completeness, etc). In
the long term there is a plan to use sdcc in z88dk instead of their
current compiler, and for some things this already works. You might want
ot ask on the z88dk list for the current state.

Philipp


------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
Sdcc-user mailing list
Sdcc-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sdcc-user

Reply via email to