Re: [fpc-pascal] windres not required/provided by Debian 2.6.0 FPC

2012-10-10 Thread Tomas Hajny
On Wed, October 10, 2012 04:16, waldo kitty wrote: On 10/8/2012 03:12, Tomas Hajny wrote: The manual forgets to mention that this is only the case on Win32 (where the various GNU tools and utilities are included with the FPC installation package). It also doesn't mention that different

[fpc-pascal] Memory alignment with FPC

2012-10-10 Thread dhkblaszyk
Does FPC ensure the same memory alignment for records and objects over different platforms? If I want to be sure to have the same alignment must I use packed (with possibly some aligning assigned) records instead in combination with data types that are guaranteed to be of the same size over

Re: [fpc-pascal] Memory alignment with FPC

2012-10-10 Thread Jonas Maebe
On 10 Oct 2012, at 12:02, dhkblas...@zeelandnet.nl wrote: Does FPC ensure the same memory alignment for records and objects over different platforms? No, alignment is defined by the platform ABI. If I want to be sure to have the same alignment must I use packed (with possibly some aligning

Re: [fpc-pascal] Memory alignment with FPC

2012-10-10 Thread Sven Barth
Am 10.10.2012 12:02, schrieb dhkblas...@zeelandnet.nl: Does FPC ensure the same memory alignment for records and objects over different platforms? If I want to be sure to have the same alignment must I use packed (with possibly some aligning assigned) records instead in combination with data

Re: [fpc-pascal] Memory alignment with FPC

2012-10-10 Thread dhkblaszyk
On 10 okt '12, Sven Barth wrote: Am 10.10.2012 12:02, schrieb dhkblas...@zeelandnet.nl: [1] Does FPC ensure the same memory alignment for records and objects over different platforms? If I want to be sure to have the same alignment must I use packed (with possibly some aligning assigned)

Re: [fpc-pascal] Memory alignment with FPC

2012-10-10 Thread dhkblaszyk
On 10 okt '12, Jonas Maebe wrote: On 10 Oct 2012, at 12:02, dhkblas...@zeelandnet.nl [1] wrote: Does FPC ensure the same memory alignment for records and objects over different platforms? No, alignment is defined by the platform ABI. If I want to be sure to have the same

Re: [fpc-pascal] Memory alignment with FPC

2012-10-10 Thread Jonas Maebe
On 10 Oct 2012, at 14:31, dhkblas...@zeelandnet.nl wrote: Jonas and Sven... Endianess is indeed an issue I will be handling. It's my understanding now that by storing data in a packed record I will have the same behaviour (when it comes to aligning data in memory) over all platforms and

Re: [fpc-pascal] Memory alignment with FPC

2012-10-10 Thread Nico Erfurth
On 10.10.12 14:40, dhkblas...@zeelandnet.nl wrote: One more question, when using packed records, is there anything to say about performance? Are there some tests anywhere that show how the performance is impacted? This highly depends on the architecture/processor. Many architectures (like

Re: [fpc-pascal] Memory alignment with FPC

2012-10-10 Thread Mark Morgan Lloyd
Sven Barth wrote: Am 10.10.2012 12:02, schrieb dhkblas...@zeelandnet.nl: Does FPC ensure the same memory alignment for records and objects over different platforms? If I want to be sure to have the same alignment must I use packed (with possibly some aligning assigned) records instead in

Re: [fpc-pascal] Memory alignment with FPC

2012-10-10 Thread Bernd
2012/10/10 dhkblas...@zeelandnet.nl: However when objects have methods, does that change memory alignment No. As long as there are no virtual methods it will not affect the size or the memory layout. From what I have read the new gtk3 API for fpc will also use objects (with methods and also

[fpc-pascal] creating msgpack port to Pascal

2012-10-10 Thread ik
Hi List, I've started working on porting msgpack (messagepack.org) to native FreePascal code: (https://github.com/ik5/fp-msgpack). If you do not know it, then it's a way to move data around with minimal amount of bytes in process. It was designed to take things like JSON and translate it into

[fpc-pascal] Lazarus 1.0.2 Release

2012-10-10 Thread Mattias Gaertner
The Lazarus team is glad to announce the release of Lazarus 1.0.2. This is a bug fix release. Here is the list of changes: http://wiki.lazarus.freepascal.org/Lazarus_1.0_fixes_branch#Fixes_for_1.0.2_.28Merged.29 The release is available for download at the SourceForge download page: