Equivalent in CC for cc's __attribute__((aligned((8)))

I want to read 3rd party genaterated binary data e.g.
struct t_simple_str
     char c;
     double d;
};where d has an offset of 8 byte.
Using SunStudio's 12U1 cc 32-bit compiler on Linux the default offset of d is 4 but with
struct t_simple_str
     char c;
     double d __attribute__((aligned(8)));
};I can achieve that th double is recognized at the correct offset.
Since I have to use the C++ compiler that doesn't support __attribute__((aligned(8)))
I want to know if there is a equivalent feature that calculates the correct offset.
I did some unsuccessful tests with #pragma align 8 (...)
but according documentation it doesn't work on local variables.
Can anybody give me a hint?

The "aligned" attribute is not yet implemented in the C++ compiler, although it is on our list of things to do.
Perhaps you could add a dummy field:
struct t_simple_str
     char c;
     char dummy[7]; // force d to offset 8
     double d;
}; as a more-portable alternative.
Please also note that the "aligned" attribute does not force an offset; it forces an alignment.

Similar Messages

  • Equivalent select statement for complex selection

    HI,
    What is the equivalent select statement for below mentioned condition.
    SELECT-OPTIONS : SALEDOCU FOR VBAK-VBELN OBLIGATORY,
                     DATE     FOR VBAK-ERDAT OBLIGATORY,
                     CHANEEL  FOR VBAK-VTWEG,
                     SALETYPE FOR VBAK-AUART OBLIGATORY DEFAULT 'QT'
                     NO INTERVALS NO-EXTENSION.
    Regards,
    John.

    hi,
    you can use following code.
    tables vbak.
    data : begin of t_vbak occurs 0.
             include structure vbak.
    data : end of t_vbak.
    select * from vbak into table t_vbak where
                            vbeln in saledocu and
                            erdat in date and
                            vtweg in chaneel and
                            auart in saletype.
    Hope this helps.
    Regards,
    Shashank

  • Equivalent Data Field for 0EXRATEXACC Info Object

    Hi Gurus,
    I have created a DSO using 2lis_13_VDITM data source by installing the same Info Source. Here i am not able to find the Equivalent Data Field for 0EXRATEXACC Info Object which is in Transfer Rules.
    So, Please let me know the Equivalent Data Field for 0EXRATEXACC Info Object.
    Points are assigned defenetely.
    Thanks in advance
    Peter B

    Hi,
    U have a field KURRF in table KURRF
    *Assign points if helpful.

  • Equivalent of LVC_FIELDCATALOG_MERGE for slis_t_fieldcat_alv

    Hi,
    i´m using FM "LVC_FIELDCATALOG_MERGE" for fieldcatalog type
    LVC_T_FCAT.
    is there an equivalent FM but for fieldcatalog type slis_t_fieldcat_alv? 
    Best regards.

    Hi,
    Check this..
    <b>  call function 'REUSE_ALV_FIELDCATALOG_MERGE'
        exporting
          i_program_name         = sy-repid
          i_internal_tabname     = 'ITAB'
          i_inclname             = sy-repid
        changing
          ct_fieldcat            = it_fldcat1[]
        exceptions
          inconsistent_interface = 1
          program_error          = 2
          others                 = 3.</b>
    if you are using itab and creating the fieldcat, and don't give i_inclname = sy-repid, it will not populate the fieldcat.
    Regards
    vijay

  • What is equivalent ASCP report for Planned Order&Order Reschedule Report

    What is equivalent report for Supply Chain Planned Order Report & Supply Chain Order Reschedule Report
    We are currently on MRP and running Supply Chain Planned Order Report successfully. We are planning to go to ASCP(Decentralized) next month ,what is the equivalent reports in ASCP?
    Edited by: SanDan on Jan 9, 2013 1:57 PM

    Hi ,
    You can explore the Planning Detail Report which you can run against your ascp plan. However there are few standard reports available in ascp. I suggest you can explore option of building custom report which will be best suited to your business needs (i.e. using Discoverer or if you are also implementing obiee you can build a custom report based on standard views or noitex views (- for ascp)
    Regards
    narendra

  • Equivalent WD method for file_open_dialog

    Hello,
    What is the equivalent method in WD ABAP for cl_gui_frontend_services=>file_open_dialog (to specify the path of a file in a pop-up)?
    I have a requirement wherein i want to specify the path in which a file will be saved in the local system. I call the method ATTACH_FILE_TO_RESPONSE to save a file, but it doest gives me a path as such.
    Best Regards,
    Seshadri

    Both ATTACH_FILE_TO_RESPONSE  and fileDownload are the recommended methods to trigger download to the frontend.  They work a little differently than the old CL_GUI_FRONTEND_SERVICES becuase they are running within a browser and have to deal with a different security and interaction model for file downloads. With the ATTACH_FILE_TO_RESPONSE, the MIME type and the corresponding configuration on the client workstation control if the file gets the save dialog box or if it opens immediately.
    The fileDownload UI element has a behaviour property that helps you to influence the way the download is handled on the client side.
    The ACFUpDownload UI element is new in 7.01.  However on that release level it won't help you with this requirement because it doesn't support a file dialog yet.  That option won't be added until 7.02.

  • I need equivalent FB setting for kernel26archck

    What is the equivalent to vga=773 in kernel26archck. Below is my current grub menu.lst:
    # Config file for GRUB - The GNU GRand Unified Bootloader
    # /boot/grub/menu.lst
    # DEVICE NAME CONVERSIONS
    # Linux Grub
    # /dev/fd0 (fd0)
    # /dev/hda (hd0)
    # /dev/hdb2 (hd1,1)
    # /dev/hda3 (hd0,2)
    # FRAMEBUFFER RESOLUTION SETTINGS
    # +-------------------------------------------------+
    # | 640x480 800x600 1024x768 1280x1024
    # ----+--------------------------------------------
    # 256 | 0x301=769 0x303=771 0x305=773 0x307=775
    # 32K | 0x310=784 0x313=787 0x316=790 0x319=793
    # 64K | 0x311=785 0x314=788 0x317=791 0x31A=794
    # 16M | 0x312=786 0x315=789 0x318=792 0x31B=795
    # +-------------------------------------------------+
    # general configuration:
    timeout 5
    default 0
    color light-blue/black light-cyan/blue
    # boot sections follow
    # each is implicitly numbered from 0 in the order of appearance below
    # TIP: If you want a 1024x768 framebuffer, add "vga=773" to your kernel line.
    # (0) Windows XP
    title Windows XP [ Loader ]
    root (hd0,1)
    makeactive
    chainloader +1
    # (1) Arch Linux
    title Arch Linux [ Stock Kernel ]
    root (hd1,0)
    kernel /boot/vmlinuz26 root=/dev/hdb1 ro vga=773
    initrd /boot/initrd26.img
    # (2) Arch Linux
    title Arch Linux [ Archck Kernel ]
    root (hd1,0)
    kernel /boot/vmlinuz26archck root=/dev/hdb1 vesa=vesafb:ywrap,mtrr,1024x768-32@70 splash=verbose,theme:darch console=tty1
    initrd /boot/initramfs-2.6.15-archck.img
    It doesn't work and i still get those big ass fonts.

    The option is
    video=vesafb:ywrap,mtrr,1024x768-32@70
    not vesa=

  • Need a function equivalent to PERCENTILE_CONT for Oracle 8i

    I have been using PERCENTILE_CONT in Oracle 9i to find median and quantiles. Now, I need to run similar queries on a different database that is only Oracle 8i. Is there an equivalent function that I can use to give Quantiles?

    I've read the description of percentile_cont several times now, and I still don't understand it (never was good at statistics anyway, still don't understand why a flush beats a straight). there was no function in 8i, but is it possible to do it by combining other functions? not understanding what it does, I don't know.
    otherwise, all the analytics I've used can be solved by joining or outer-joining a table to itself - that's how we used to do them. for example, for SUM() OVER you join the table to itself, using = on all the selected columns expect the column you want to sum, that column becomes a <=. then group by all the columns in one isntance of the table, and sum the column from the other instance of it.
    some things might need to join the table 3 times, or use outer-joins. doing that give you the ability to know, on any given row, the total number of rows, it's RANK or ROW_NUMBER, etc.
    hope this helps. if you understand how percentile_cont works, you could probably construct a query yourself

  • Equivalent of 9KE0, for budget

    Hello,
    I need to adjust budget on a profit center
    What is the equivalent of transaction 9KE0, which is PCA journal entry, for budget?
    Thanks in advance
    KR - Loï

    Are you talking about the Plan on a Profit Centre?
    If so plans are changed via 7KE1 and 7KE3 BUT normally the plan on the Profit Centre comes from the Plans on the Cost Centres, Internal Orders, etc (see 1KE0)
    So make sure this is what you want to do.
    Hope this helps.

  • Oracle equivalent relation terms for History Notes and Abbreviation

    Hi,
    We are trying to migrate from Basis 9 database to Oracle 10g. The biggest challenge isto build a oracle thesaurus similar to the one in Basis.
    In Basis we have relations History Notes(HN) and Abbreviation(AB). I am not able to find equivalent relation in Oracle. Recently I got the ANSI Z39.19 Guidelines document from one of the forum contributor, which mentions about the relations History Notes and Abbreviation. I am not able to load the relation HN. ctxload is stopping at this term with the error DRG-11706: invalid relation HN.
    Does anyone know if there is any equivalent relation in Oracle Thesaurus for HN and AB?
    Thanks

    Thanks so much for the answers.
    Auto Lexer is a indexing element, which I could use for a column. I need abbreviations stored in my system schema so that multiple database instances could access these thesaurus terms. Please correct me if I am wrong.
    I thought of the same solution for HN Brian. I am thinking of putting a tag HN to identify them later for display. Abbreviations are more specific and SYN could be general to a term. If I substitute AB with SYN, I am afraid I will loose the data collected by users over the years. I am thinking of putting them in the dr$ths_fphrase table as AB:. The constraint I have here is, thesaurus management tool that comes with Oracle 10g considers all the terms in this table, as terms in different thesaurus. I have changed the code to handle it but I am not sure if I am deviating from the standard practice.
    Your feedback on this is much appreciated.
    Thanks again

  • TextField (for Input) which supports alignment and number format - AJAX?

    Dear forum members,
    I have a tabular form containing a lot of number fileds shown as TextFileds, where Users may input large numbers.
    Is there any way to let the numbers inside the TextFileds be shown right aligned.
    And maybe using a number format, which the user isn't bound to follow (just for display)?
    Thank you
    Johann

    Hello Johann,
    In the Column Attributes set the Element Attribute (in the Tabular Form Element) to style="text-align:right" for right alignment.
    You can use the Number / Date Format (in the Column Formatting) to 999G999D99 (or whatever you like) to get a number format.
    Greetings,
    Roel
    http://roelhartman.blogspot.com/
    http://www.bloggingaboutoracle.org/
    http://www.logica.com/
    You can award this reply to your question by marking it as either Helpful or Correct ;-)

  • What is the equivalent Oracle datatype for the access Memo type?

    Hi,
    I would like to know what the oracle equivalent of the Access Memo datatype is.
    Thanks
    Adam

    Yep. Look at this example:
    SQL>create table x(y clob);
    Table created.
    SQL>insert into x values (
      2  'This is a very long string
      3  and that was an carriage return - entered in notepad'
      4  )
      5  /
    1 row created.
    SQL>select * from x;
    Y
    This is a very long string
    and that was an carriage return - entered in notepad
    SQL>

  • SQL Server Equivalent of this for Oracle.

    I was just wondering if anyone know of any links similar to this(http://www.oracle.com/webfolder/technetwork/tutorials/obe/db/12c/r1/poster/OUTPUT_poster/poster.html#).
    The fifth tab has an extremely informative picture of the architecture. Anything similar to that for SQL would be really handy.
    Thanks in advance.

    In addition to other posts, you can also check the following blogs about SQL Server architecture.
    SQL SERVER – Beginning of SQL Server Architecture – Terminology – Guest Post
    http://blog.sqlauthority.com/2012/08/30/sql-server-beginning-of-sql-server-architecture-terminology-guest-post/
    SQL Server architecture: Behind the scenes
    http://1hw.in/sql-server-architecture-behind-the-scenes/
    Thanks,
    Lydia Zhang

  • I used the drawing option in AppleWorks. What is an equivalent program/option for Lion?

    I used the drawing option in AppleWorks. What is an equivalent program/option in Lion? I use it to design quilts.

    Nothing that comes with Lion.
    Just put, "osx drawing program free," in Google and take your pick.
    First one on the list is one called Paintbrush: http://paintbrush.sourceforge.net/
    You could also just search the App Store.

  • Photoshop equivalent to "save for web"??

    Hello,
    I'm trying to organize all my photos into iphoto6. A problem I'm running into is sharing out (to the web/email) these massive 1.5 meg pix. The export feature doesn't give too many options for adjusting quality and playing with file size/quality ratios as you can in photoshop via the "save for web" feature. Photoshop, however, is extremely mind numbing in that you can't quickly batch convert multiple files. I'm wondering if I should learn to live with the limited optimizing functionality in iphoto's export feature or is there possibly an alternative that will allow me to batch convert multiple large pix files into web optimized, good looking .jpgs? If there is such an app, I'm also curious to hear organization strategies between the two apps.
    Thanks in advance! best, Steve
      Mac OS X (10.4.2)  

    There are a number of free applications that you can try. Three are freePhotoConverter 3.5, Resize! and iReSize. You can find all of them at VersionTracker.com by searching for resize. They offer quality level settings, size, etc.

Maybe you are looking for

  • If I buy any iPhone can it still work as an iPod touch without the phone carrier? Will it work normal?

    So what if I bought an iPhone 4 or 5 off craigslist because it was cheaper than a 5th generation iPod. Would it still work as an iPod without a phone carrier?

  • Forms server failing after the first reboot.

    Recently installed R12 on XP and was able to add users and responsibilities. after my first reboot of xp i was able to login but not able to start form server. Have tried reinstalling j2se and created mesg folder under forms folder as indicated in on

  • How to reverse VO extention?

    I have extended a VO in iSupply Portal, and import project's .jpx file with Substitutes into ERP. How can I reverse the process, if I want ERP to use the original VO? Thanks a lot.

  • Cannot properly send attatchments

    Hello, I recently purchased a new 13" Macbook Pro, and until recently I had no problem sending emails with attachments. However, I seem to now have an issue with properly sending attachments. I am able to attach at file (usually .doc .docx and .pdf)

  • Earphones are not working with ipad

    I have sound on my ipad but when I put earphones on no sound . tried rebooting, also tried many different earphones. help