Compile flag for the endian neutral conversion on x86_x64 systems

I am struggling to work on the endianess issue porting the driver and application codes from Sparc to x64 system. The device driver just copies the data in and out the structure from the kernel space to user space or from the user space to kernel space calling ddi_copyin and ddi_copyout in most time. The application ported from Sparc has to be handle the endianess issue.
For instance, the driver returns the data in the structure
typedef struct {
ushort robot_address; /* medium transport element address */
ushort robot_count; /* number medium transport elements */
ushort cell_address; /* medium storage element address */
ushort cell_count; /* number medium storage elements */
ushort port_address; /* import-export element address */
ushort port_count; /* number import-export elements */
ushort drive_address; /* data transfer element address */
ushort drive_count; /* number data transfer elements */
} element_info_t;
Byte _0 _1 _2 _3 _4 _5 _6 _7 _8 _9 A B C D E F
00 01 00 01 10 00 00 17 00 10 00 01 01 00 00 02
First Robot Address ........... 256
Number of Robots .............. 256
First Cell Address ............ 16
Number of Storage Cells ....... 5888
First Import/Export Address ... 4096
Number of Import/Exports ...... 256
First Drive Address ........... 1
Number of Drives .............. 512
The correct value for First Robot Address should be 1 in Byte[0]->Byte[1], but the value is read to 256 in Byte[1]->Byte[0] since of the little endian. To get the correct value, I have to create a micro to convert the data, but it will take a lot of time to add the micro in the codes with 20k lines.
Is any compile flag applied to convert the little endian to big endian to save my life for the porting?
I am using Sun Studio 11 with Sun C 5.8 Patch 121016-02 2006/03/31.
Thanks for your help!

There is no compiler option to control endianness of programs. I don't offhand see how such an option could work, because some data will always be in the machine's native endianness.
But there is a standard Unix toolset "xdr" that allows you to send data across an interface between different architectures, while preserving the data values. Each system knows its native data format. The sender marshalls the data stream into the interface format, and the receiver unmarshalls the stream into its own format.
("Every problem in computer science can be solved by adding a level of indirection.")
Run "man xdr" as a place to start.

Similar Messages

  • How to delete or activate the deletion flag for the sales order line item

    Hi All,
    I  have one Cust order & with referance to that cust order one production order is created . The production order user has done the Goods issue with 261 movement type  & GR wi 101 before 4 months back , & he has reverse  the GR  with 102 on todays date . but in materila master the  variable prize is maintain thats why it is showing  a differance in the cost .
    User want to delete the Production order as well as the custemer order From MDO4 , So we have make the Production order TECO & save , it is gone form the MD04 but the Custumer order still there . It is not allow us to cancell or reject . We have tried to maintain the reason for rejection but it showing the message that you can not activate the deletion flag for the order .
    Could you please Help me to find out the way how can i delete the custemer order ?
    Thanks In advance
    Regards
    Piyush

    W ehave Settele that order & then activate the deletion flag for the order & then cancel the sales order.

  • How to go for the Log Polar Conversion of the image.

    How to go for the Log Polar Conversion of the image.

    Hi,
    I'm not sure if you mean using the polar plot vi, but if so there is an example shipped with LabVIEW. Go to Example Finder and search for 'polar', and you should find Polar Plot Demo.vi. Also, here are some useful links:
    Link 1
    Link 2
    Hope this helps!
    Jeremy L.
    National Instruments
    Jeremy L.
    National Instruments

  • Set Deletion Flag for the Preventive Maintenance Order

    Hi,
    I need to set the Deletion flag for the Service Order. Deletion flag available in the screen disabled. Please suggest.
    also I need know under which I shall be able to set such deletions.
    Thank you,
    Vijaya

    Hi Vijaya,
    Pls refer the help.sap.com related to deletion flag for PM/CS Orders. Some of the check criteria mentioned below for your reference.
    Before a deletion flag is set, the following requirements must be met:
    u2022 Any manually added purchase requisitions or purchase orders for the order must be deleted first.
    The balance of the actual costs for the order must be zero. This means that the deletion flag can only be activated if the order has already been settled, or if no actual costs were incurred for the order.
    u2022 Commitments relating to the order must be deleted.
    u2022 Unprocessed and incorrect goods movements must be processed.
    When the deletion flag is activated, all remaining capacity requirements are deleted. A deletion indicator is also set in any open material reservations.
    An order that has been flagged for deletion cannot be changed. However, you can cancel the deletion flag.
    Thanks
    Siva
    Edited by: sivakumar kasi on Sep 3, 2009 12:09 PM
    Pls set the Order as Techically completed (TECO) and check the deletion flag set.
    Thanks
    Siva

  • Deletion flag for the PM assembly

    Hi ALL,
    How to set the deletion flag for the PM assembly ?
    If possible to set the deletion Flag then whether it will be displayed in structural list transaction such as IH01 or IH06?
    Kindly reply.
    Surya

    Hi Surya,
    In CS02 you are deleting Material BOM and not PM Assembly (which is defined as material).
    To delete PM Assembly you have to use MM06.
    To view in IH01 you have marked BOM explosion tick and Only PM assemblies tick mark is selected.
    To view in IH06 you need to select FL line item in out put and then Structure >>>> Hierarcy List.

  • WSUS Sync is not working Sync failed: UssCommunicationError: WebException: The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel. --- System.Security.Authentication.AuthenticationException: The remote

    I know there are loads of posts with same issue and most of them were related to proxy and connectivity .
    This was case for me as well (few months back). Now the same error is back. But I've confirmed that FW ports and proxy are fine this time around.
    server is configured on http port 80 
    ERROR
    Sync failed: UssCommunicationError: WebException: The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel. ---> System.Security.Authentication.AuthenticationException: The remote certificate is invalid
    according to the validation procedure.~~at System.Web.Services.Protocols.WebClientProtocol.GetWebResponse(WebRequest request). Source: Microsoft.SystemsManagementServer.SoftwareUpdatesManagement.WSyncAction.WSyncAction.SyncWSUS
    I've checked proxy server connectivity. I'm able browse following site from WSUS server
    http://catalog.update.microsoft.com/v7/site/Home.aspx?sku=wsus&version=3.2.7600.226&protocol=1.8
    I did telnet proxy server on the particular port (8080) and that is also fine.
    I've doubt on certificates, any idea which are the certificates which we need to look? And if certificate is expired then (my guess) we won't be able open the above mentioned windows update catalog site?
    Any tips appreciated !
    Anoop C Nair (My Blog www.AnoopCNair.com)
    - Twitter @anoopmannur -
    FaceBook Forum For SCCM

    Hi Lawrence ! - Many thanks for looking into this thread and replying. Appreciate your help.
    Your reply  ("SSL is enabled/configured, and the certificate being used is invalid
    (or the cert does not exist or cannot be obtained), or the SSL connection could not be established.") is very helpful.
    I've already tested CONTENT DOWNLOAD and it's working fine. WSUS Sync was also working fine for years with proxy server configured on port (8080) and WSUS server on port 80.
    My Guess (this is my best guess ;)) is this something to do with Firewall or Proxy side configuration rather than WSUS. However, I'm not finding a way to prove this to proxy/firewall team. From their perspective all the required port communication open and
    proxy server is also reachable. More over we're able to access internet (Microsoft Update Catalog site) over same port (8080).
    Any other hints where I can prove them it's a sure shot problem from their side.
    Thanks again !!
    Anoop C Nair (My Blog www.AnoopCNair.com)
    - Twitter @anoopmannur -
    FaceBook Forum For SCCM

  • Getconf returns compiler flags that the compiler warns about

    I have Workshop 12u1 installed on my Solaris 10u8 machine (x86_64). I'm up to date with patches as of a couple weeks ago.
    I'm well aware that the Workshop suite has deprecated flags like -xarch=generic64, -xarch=amd64a, etc.
    However, when I run "getconf" on my Solaris 10 system, some of the conf settings still return those older flags that the compiler now warns about. That causes a lot of warning chatter when building certain applications (e.g. perl 5.10.1) that are smart enough to use "getconf" to try determine what flags to use in certain situations. Using getconf to find the right flags is even mentioned in the standards(5) page, but following its advice results in deprecation warnings from the compiler. Not good.
    If you run the following code you'll see what I mean:
    for f in `man getconf | egrep 'XBS'`; do echo "Checking $f"; getconf "$f"; doneIs this something that I (as a sysadmin for the system) should be able to configure, or is it something that would need to be patched to fix? The man pages for getconf, sysconf, and confstr aren't clear where the values are actually coming from.
    So, how should this be fixed?
    Thanks,
    Tim

    Enchanter wrote:
    Since I'm running regular old Solaris 10, rather than OpenSolaris, I'm skeptical how much help the OpenSolaris developers are truly going to be. I can certainly give it a go, but even if they fix it in OpenSolaris, it might be a very long time before that fix filters into Solaris.Actually, it goes the other way. New features and modification go into the internal Solaris development workspace before they migrate to Open Solaris. The Solaris Express and final releases and Open Solaris releases come from the same source base. Whether a feature or update goes into a Solaris 10 patch depends partly on demand, especially demand from customers with service contracts.
    I'm also a little puzzled about the "backwards compatibility" thinking of the compiler developers. In some areas (e.g. C++ and the standard library), what's shipped with the compiler is years and years behind what's current, apparently in the name of "backward compatibility". Yet where compiler flags are concerned, the developers seem to be much more cavalier about deprecating things and making changes that break backward compatibility.We try very hard not to break code or makefiles. Sun (and now Oracle) makes its money from enterprise users. Their code bases last for a long time, and changes are expensive. Changing a line in a makefile or source code file can mean having to re-certify the application.
    The change from -xarch to -m specifying the memory model was more abrupt than we would have liked, and in hindsight, was probably not handled very well. We were running into combinatorial explosion of -xarch sub-options due to the increasing number of architectures that the compiler supports. Some option combinations quietly resulted in behavior that you didn't expect. (For example, the combination "*-fast -xarch=v9*"did not give the same result as "*-xarch=v9 -fast*".) Separating memory model from the other considerations made the options easier and more reliable to use.
    Don't get me wrong -- I'm all for forward progress with the tool-chain -- I think that the C++ standard library and the defaults should all be brought up to what's current in the industry. Sun Studio 12 update 1 has direct support for Apache stdcxx (if installed in a standard location) in addition to libCstd and STLport. The Apache library will be in the next Open Solaris. When it will be available in a Solaris 10 update has not yet been decided.
    I also think adding support for -m32/-m64 was a good move. It just seems to me that if the developers are going to deprecate a large number of flags that the compiler accepts, they should also make certain that the rest of the operating system can handle that change. To me, that means that they need to work with the developers of getconf/confstr() to make certain it knows how to check the compiler version before it emits a particular flag.Only a few options have been deprecated. It's just that they are probably the ones you used most. :-(
    More than one compiler version can be installed on a system, and compilers can be installed anywhere. Programmers in medium to large shops typically run compilers installed on a remote server, although they might have other compilers installed locally. If getconf had to guess what compiler you were using, it would often guess wrong. If you have suggestions on how to match up getconf behavior with the compiler you want to use, please post them in an Open Solaris forum.

  • How to mass set deletion flag for the production order

    Hi Expert,
      do you know which transcation code or program is used to mass set the deletion flag for production order?
    thank you in advance!

    Hi,
    http://www.sap-img.com/production/how-to-delete-old-production-orders.htm
    Note that CO78 is the start of the Archive process.  We are not using Archiving yet but the initial process fits the bill for what we need to do as mentioned in the original note.
    Decide the range of orders you want to delete.  This range will be used in the program variant. Note that we will be running CO78 many times because of the number of orders involved. 
    Running CO78 calls program PPARCHP1 and this involves the use of a Variant where the parameters for selection etc. are set. 
    First of all, create the variant via SE38 for PPARCHP1. 
    Enter details for number range, order type, plant and set deletion flag. Flag Detailed log and set this to go to Spool when running. Save the variant. You can also force the job to run in background at this point (which I would recommend) via menu line Variant --> Attributes.  Also here you can flag order number, order type and plant to be required fields. 
    Run CO78
    Press the first button - deletion flag/deletion indicator.
    Choose the variant you have just created.  Press "Maintain" to update the selection range on subsequent runs. Save changes and return to initial screen.
    Press Start date to set date and time for job to run as per any background job. Icon will turn Green.
    Press Spool Params to set save output in Spool Q rather than print immediately. Icon will also turn Green.
    Press Execute and job can be tracked via SM37.
    Details of deleted orders and errors will appear in the Spool.
    Rerun as many times as you need with relevant order ranges till all required orders are deleted.
    Hope this will resolve your issue.
    Regards,
    Naveen.

  • Is there support for the AC-1000 target real-time system?

    Hi,
    Is NI supporting the AC-1000 target real-time system? We've used MatrixX, SysBld, Autocode, and Realsim to compile, link, download, and run various control models on the target real-time system for interfacing with hardware. The AC-1000 has 2-3 processors running a pSOS Operating System, multiple I/O boards, and a MIL-STD-1553 bus. It's connected to an NT workstation via a LAN and a serial cable.
    So, any information regarding support and maintenance would be very helpful. Thank you for your time!
    Take care,
    Chris Holmes
    Senior Modelling and Simulation Engineer
    United Defense, L.P.

    Although NI acquired MATRIXx, we did not acquire the RealSim hardware (AC-1000, AC-104, and PCI-Pro). Wind River retains the ownership of the hardware but is not supporting the product line. Wind River has made available the attached parts list for the RealSim hardware so that customers can self-service existing systems.
    NI doesn't plan to develop or support RealSim - and is directing customers who wish to continue to use this software/hardware to 3rd parties. The following NI Alliance members can provide RealSim support.
    iControl: www.icontrol-inc.com
    ADI: www.adi.com
    OPAL-RT: www.opal-rt.com
    NI plans to make it easy for customers to target NI hardware, including real-time PXI, with MATRIXx in the future. For information on P
    XI, please refer to the PXI section of the ni.com site at ni.com/pxi.
    Ash Razdan
    National Instruments
    [email protected]
    Attachments:
    AC-104_Parts_List.xls ‏36 KB
    AC-1000_Parts_List.xls ‏37 KB
    PCI-Pro_Parts_list.xls ‏37 KB

  • SLT Replication for the same table from Multiple Source Systems

    Hello,
    With HANA 1.0 SP03, it is now possible to connect multiple source systems to the same SLT Replication server and from there on to the same schema in SAP HANA - does this mean same table as well? Or will it be different tables?
    My doubt:
    Consider i am replicating the information from KNA1 from 2 Source Systems - say SourceA and SourceB.
    If I have different records in SourceA.KNA1 and SourceB.KNA1, i believe the records will be added during the replication and as a result, the final table has 2 different records.
    Now, if the same record appears in the KNA1 tables from both the sources, the final table should hold only 1 record.
    Also, if the same Customer's record is posted in both the systems with different values, it should add the records.
    How does HANA have a check in this situation?
    Please throw some light on this.

    Hi Vishal,
    i suggest you to take a look to SAP HANA SPS03 Master Guide. There is a comparison table for the three replication technologies available (see page 25).
    For Multi-System Support, there are these values:
    - Trigger-Based Replication (SLT Replication): Multiple source systems to multiple SAP  HANA instances (one  source system can be connected to one SAP HANA schema only)
    So i think that in your case you should consider BO Data Services (losing real-time analytics capabilities of course).
    Regards
    Leopoldo Capasso

  • Compiler flags for GCCFSS to support POSIX & Solaris threads

    My team is working on compiling a custom Perl with support for both POSIX and Solaris threads, and I'm trying to work out the appropriate compiler and linker flags to set for GCCFSS. At present I've come up with:
    gcc -mt -lpthread -D_POSIX_C_SOURCE=199506L
    which expands to:
    gcc -D_REENTRANT -lthread -lpthread -D_POSIX_C_SOURCE=199506L
    According to the [Solaris 9 Multithreaded Programming Guide|http://docs.sun.com/app/docs/doc/806-6867/6jfpgdcob?a=view], this should allow for both POSIX and Solaris threads support via POSIX semantics.
    Any comments or recommendations on this?
    Thanks,
    RT.

    It sounds about right. The interoperability question may be better posted on the Solaris forum though.
    Thanks
    Prashanth

  • HT1725 My credit card is attached to my permanent US address but I am connected to the French Apple store.  My IPad shows the Us flag for the location but will not update my app bought in the US Store how do I change stores

    My iTunes IPad app bought in the Us Apple Store online will not download the update for HayDay.  It gives me a message that the app was not bought in the French store.  How do I change to the US Apple store to resume updates to my application HayDay.?

    Click here and follow the instructions to change the iTunes Store country.
    (85459)

  • I am a new subscriber for the pdf upload conversion.

    I cannot upload a PDF doc for conversion to Word. I have tried several times and with different documents. Any ideas as to what I can do?  Thanks

    Hi, what happens when you try to upload a document? Do you get an error message?

  • Need help for  the message flow in sap xi system?

    Hello All,
    My requirement is some wat different............in the existing production system the message flow is 3500 per hour......... now we want to develop new scenario and the message flow will be 8500 message per hour.
    Client is not giving me the system details ...like network details and i need to say that can we send 8500 messages in the existing system with out changing the process speed or data base.
    also please advice the best ways to increase the performance in the sap xi system when the message flow is huge.
    thanks in advace.
    Thanks and Regards,
    chinna

    >
    chinnasapxi wrote:
    > Hello All,
    >
    > My requirement is some wat different............in the existing production system the message flow is 3500 per hour......... now we want to develop new scenario and the message flow will be 8500 message per hour.
    > chinna
    3500 to 8500 is not a message count tht needs to be worried about
    but to be on the safer side what is the average size of a single message?
    if the size is not a significant one u can go ahead

  • What are the minimum requirements for compiling apps for iOS7?

    Hi, guys.
    I currently have a computer with XCode 4.6.3 and Mac OS X (v10.7.5).
    Is this enough to compile apps for the AppStore for iOS 7?
    What are the minimum requirements for compiling these apps? XCode version or both XCode and OS X versions?
    Thanks in advance,

    OK, actually this site has a better explanation of the prerequisites:
    http://readwrite.com/2013/06/12/everything-you-need-to-know-to-get-started-with- ios-7-development#awesm=~opgY8n30iuR9oM

Maybe you are looking for

  • Missing component of Dreamweaver

    I have been using Dreamweaver for a long time without any problems, now, reinstalling Windows XP and Dreamweaver after a breakdown I suddently face an annoying problem. When I try to insert a Flash Button into the page I get the following error messa

  • Any standard function which is not allow to access form base on responsibil

    Dear all, My team member added one menu button which calls another form in the "Action" menu. However, one responsibility can access this form and others are not and return the following message. "Function not available to this responsibility. Change

  • LAN-"shared to other computers"...not connecting {SOLVED}

    Hi, I just downloaded the latest Arch 64-bit the other day and thanks to the excellent wikis I have been able to get KDe up and running and change to network manager for my mobile broadband internet. The only main thing I have a problem with now is c

  • Member death detection (Coh-3.5.3)

    Hi, Can someone explain death detection in 3.5.3 please. I have a reasonable idea how it works: A member suspects another member has departed so it asks two other members for confirmation. If these other members confirm departure then the original me

  • Task Flows in Resource Catalog

    Version: WebCenter Spaces PS4 How can I get OOTB Search Task Flow in the Resource Catalog in WebCenter Spaces ? Basically I wanted to DnD the search task flow in a webcenter spaces page. But when I do "Add Content" at runtime then in Resource Catalog