Yohanes Nugroho wrote: > tapi jika > char *coba3 = "teststring" > lalu > char *coba4 = "teststring" > alamat yang ditunjuk coba3 dan coba4 sama (sudah ditest di gcc). > Optimisasi di atas biasanya disebut 'string pooling', jadi kalau ada dua atau lebih string constant, constants itu akan ditaruh di lokasi yg. sama untuk menghemat memory. gcc kayaknya melakukan optimisasi ini by default, tapi kompiler yg. lain (seperti MSVC) enggak. Jadi sebaiknya don't take this for granted.. :-) cheers, Bennylp -------------------------------------------------------------------------------- Utk berhenti langganan, kirim email ke [EMAIL PROTECTED] Informasi arsip di http://www.linux.or.id/milis.php3 Pengelola dapat dihubungi lewat [EMAIL PROTECTED]
- Re: [programming] call by reference di c for linux Yohanes Nugroho
- Re: [programming] call by reference di c for linux Agus Budy Wuysang
- Re: [programming] call by reference di c for linux Edwin Pratomo
- Re: [programming] call by reference di c for linux Ronny Haryanto
- Re: [programming] call by reference di c for linux Steven Haryanto
- Re: [programming] call by reference di c for linux Oki DZ
- Re: [programming] call by reference di c for linux Ikhlasul Amal
- Re: [programming] call by reference di c for linux Yohanes Nugroho
- Re: [programming] call by reference di c for linux Agus Budy Wuysang
- Re: [programming] call by reference di c for linux Oki DZ
- Re: [programming] call by reference di c for linux Benny Prijono
- Re: [programming] call by reference di c for linux Yohanes Nugroho