Discussion:
[xHarbour-developers] C compiler alignment
Enrico Maria Giordano
2015-10-07 14:03:37 UTC
Permalink
Dear friends,

can someone confirm that I have to use alignment 8? I ever used
alignment 4 but now I found that hb_pcount() returns 64 with alignment 4
(while it works fine with alignment 8).

Please let me know.

EMG

--
EMAG Software Homepage: http://www.emagsoftware.it
The EMG Music page: http://www.emagsoftware.it/emgmusic
The EMG's ZX-Spectrum Page: http://www.emagsoftware.it/spectrum
The Best of Spectrum Games: http://www.emagsoftware.it/tbosg
Luis Krause Mantilla
2015-10-07 22:16:35 UTC
Permalink
Enrico:

typing bcc32 -h

-axxx Set data alignment boundary. Default is -a8; -a- means -a1

This is with Borland 5.8 so alignment seems to default
to 8 anyway. Wonder if you're using an older version
of Borland in which you would have to specify -a8 to
ensure it uses 8 byte alignment.

Regards,
Post by Enrico Maria Giordano
Dear friends,
can someone confirm that I have to use alignment 8? I ever used
alignment 4 but now I found that hb_pcount() returns 64 with alignment 4
(while it works fine with alignment 8).
Please let me know.
EMG
--
EMAG Software Homepage: http://www.emagsoftware.it
The EMG Music page: http://www.emagsoftware.it/emgmusic
The EMG's ZX-Spectrum Page: http://www.emagsoftware.it/spectrum
The Best of Spectrum Games: http://www.emagsoftware.it/tbosg
------------------------------------------------------------------------------
Full-scale, agent-less Infrastructure Monitoring from a single dashboard
Integrate with 40+ ManageEngine ITSM Solutions for complete visibility
Physical-Virtual-Cloud Infrastructure monitoring from one console
Real user monitoring with APM Insights and performance trend reports
Learn More http://pubads.g.doubleclick.net/gampad/clk?id=247754911&iu=/4140
_______________________________________________
xHarbour-developers mailing list
https://lists.sourceforge.net/lists/listinfo/xharbour-developers
--
Luis Krause Mantilla
lkrausem at shaw dot ca
luis_krause at hotmail dot com
"May the Source be with GNU"
Enrico Maria Giordano
2015-10-07 22:27:26 UTC
Permalink
Post by Luis Krause Mantilla
Post by Enrico Maria Giordano
can someone confirm that I have to use alignment 8? I ever used
alignment 4 but now I found that hb_pcount() returns 64 with
alignment 4 (while it works fine with alignment 8).
typing bcc32 -h
-axxx Set data alignment boundary. Default is -a8; -a- means -a1
Yes, I already know that. I ever used -a4. So you are confirming that I
have to use -a8 (default) now?

EMG

--
EMAG Software Homepage: http://www.emagsoftware.it
The EMG Music page: http://www.emagsoftware.it/emgmusic
The EMG's ZX-Spectrum Page: http://www.emagsoftware.it/spectrum
The Best of Spectrum Games: http://www.emagsoftware.it/tbosg
Luis Krause Mantilla
2015-10-08 15:05:44 UTC
Permalink
Enrico:

Yes, I think you should.
Post by Enrico Maria Giordano
Post by Luis Krause Mantilla
Post by Enrico Maria Giordano
can someone confirm that I have to use alignment 8? I ever used
alignment 4 but now I found that hb_pcount() returns 64 with
alignment 4 (while it works fine with alignment 8).
typing bcc32 -h
-axxx Set data alignment boundary. Default is -a8; -a- means -a1
Yes, I already know that. I ever used -a4. So you are confirming that I
have to use -a8 (default) now?
EMG
--
EMAG Software Homepage: http://www.emagsoftware.it
The EMG Music page: http://www.emagsoftware.it/emgmusic
The EMG's ZX-Spectrum Page: http://www.emagsoftware.it/spectrum
The Best of Spectrum Games: http://www.emagsoftware.it/tbosg
--
Luis Krause Mantilla
lkrausem at shaw dot ca
luis_krause at hotmail dot com
"May the Source be with GNU"


------------------------------------------------------------------------------
Enrico Maria Giordano
2015-10-08 15:07:57 UTC
Permalink
Post by Luis Krause Mantilla
Yes, I think you should.
Ok, thank you. I'm going to change my alignment immediately.

EMG

--
EMAG Software Homepage: http://www.emagsoftware.it
The EMG Music page: http://www.emagsoftware.it/emgmusic
The EMG's ZX-Spectrum Page: http://www.emagsoftware.it/spectrum
The Best of Spectrum Games: http://www.emagsoftware.it/tbosg

------------------------------------------------------------------------------
Loading...