search for: alingment

Displaying 5 results from an estimated 5 matches for "alingment".

Did you mean: alignment
2012 Sep 10
3
[LLVMdev] Question about ctors, dtors and sections on Windows
...I control section names and attributes. Before I found the ctors/dtors variables I tried to implement this functionality by placing a variable in a section with a special name. This works because a global variable can have an optional section name. But: - How can I control section attributes and alingment? E.g. the .CRT$XU segment is read-only. How can I specify that? - How can I place constant data in the .rdata section? Thanks for any hints! Regards Kai
2012 Sep 10
0
[LLVMdev] Question about ctors, dtors and sections on Windows
....dtors scheme. > My expectation was that the dtors placed in .CRT$XTU which are the C > terminator functions. Maybe there is a way to customize this? Yes. Target (or,rather subtarget) specifies this. Looks like it was somehow missed for dtors. > - How can I control section attributes and alingment? E.g. the .CRT$XU > segment is read-only. How can I specify that? This is job of target, not user code. If you need such granularity - write assembler > - How can I place constant data in the .rdata section? The global should be constant. Everything should happen automagically. It might be s...
2008 Feb 08
5
[PATCH] virtio_ring: make structure defines packed
Currently the virtio_ring structure are not declared packed, but they describe an hardware like interface. We should not allow compilers to make alignments and optimizations that can be different between the guest and host compiler. I propose to declare all structures that are in shared memory as packed. Does anybody see a problem with packed? Signed-off-by: Christian Borntraeger
2008 Feb 08
5
[PATCH] virtio_ring: make structure defines packed
Currently the virtio_ring structure are not declared packed, but they describe an hardware like interface. We should not allow compilers to make alignments and optimizations that can be different between the guest and host compiler. I propose to declare all structures that are in shared memory as packed. Does anybody see a problem with packed? Signed-off-by: Christian Borntraeger
2003 Dec 01
0
No subject
...fname_len) { /* * We need various heuristics here to detect a unicode string... JRA. */ DEBUG(10,("get_filename_transact: data_offset = %d, data_len = %d, fname_len = %d\n", data_offset, data_len, fname_len )); /* * Win2K sends a unicode filename plus one extra alingment byte. * WinNT4.x send an ascii string with multiple garbage bytes on * the end here. */ if((data_len - fname_len == 1) || (inbuf[data_offset] == '\0')) { /* * Ensure that the data offset is aligned * on a 2 byte boundary - add one if not. */ fname_len = fn...