Re: [cc65] const/volatile

Date view Thread view Subject view

From: Groepaz (groepaz_at_gmx.net)
Date: 2003-02-02 15:13:57


On Sunday 02 February 2003 12:28, Christian Krüger wrote:
> Hi,
>
> >I like object oriented style too and for very simple getters/setters I
> >use macros. This way you even spare that 'rts' and don't need any fancy
> >compiler extensions.
>
> yes, but they aren't type save. That's why I (and maybe Uz too)
> like to have an 'inline' feature. Anyhow, for a decent optimizer
> this should be one of the basic jobs: examine if including the code
> is shorter than calling it. But I wouldn't bet that this is done by
> the cc65 optimizer... (or am I wrong?) (...another neat enhancement?)

even gcc fails to do that properly for that matter :o)

-- 
          ___ ___ .___________________ .___________ _______.
    c=64 /   |   \|   \__    ___/     \ \_   _____/ \      \ [groepaz]
     gb /    '    \   | |    | /  \ /  \ |    __)_  /   |   \ gp32
    cgb \    .    /   | |    |/    '    \|        \/    |    \ psx
     gba \___|_  /|___| |____|\____|__  /_______  /\____|__  / dc
          -----\/-----'---------------\/--------\/---------\/
       http://www.hitmen-console.org    Hitmen WWW Headquarters
       http://fly.to/hitmen-groepaz     my personal playground
       http://rr.c64.org/silversurfer   home of the RR debugger
       ftp.musoftware.de/pub/groepaz    cc65 dump site

----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo_at_musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.


Date view Thread view Subject view

This archive was generated by hypermail 2.1.3 : 2003-02-02 15:12:28 CET