[so] Tema 3 - windows 32 vs 64

George Dita george.dita at gmail.com
Sun May 11 17:38:49 EEST 2008


La temele astea ne punem probleme de compatibilitate 32 vs 64 biti? Pot sa
compilez linistit fara /Wp64 si sa imi vad de pointerii mei de 32 de biti?


Nu de alta dar in linux faceam bucuros ceva de genul (void*)((unsigned
long)memaddr - ((unsigned long)memaddr % PAGE_SIZE))
si acum folosesc niste chestii ciudate de genul: (void*)(PtrToUlong(memaddr)
- (PtrToUlong(memaddr) % PAGE_SIZE)) si tot nu este bine ca nu pot sa fac
cast corect inapoi spre void*.

-- 
George Dita
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://cursuri.cs.pub.ro/pipermail/so/attachments/20080511/64f76ae4/attachment.htm 


More information about the so mailing list