Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8816567
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T04:39:03+00:00 2026-06-14T04:39:03+00:00

Is it possible? For a small code without any branches/loops. Are there any gcc

  • 0

Is it possible? For a small code without any branches/loops.
Are there any gcc flags or intrinsic instructions like SSE’s for x86 and other processor families? I am just curious since all the processors available these days follow out of order execution model.

Thanks in advance

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T04:39:04+00:00Added an answer on June 14, 2026 at 4:39 am

    Most modern out-of-order CPUs are inherently out-of-order, without switching possible between in-order and out-of-order modes.

    You can try to find some in-order CPU, and there are some:

    • x86: Intel Atom (only 45 nm and older versions; they have two parallel pipelines but executes all instructions in order)
    • arm: Cortex-A8, and many older cores;

    While it is not possible to directly turn off instruction reordering in the typical out-of-order CPU, you can inject something serializing (like cpuid in x86 world) between every your instruction to simulate in-order execution.

    There is a part of Intel manuals (vol 3a) about serializing instructions (copied from http://objectmix.com/asm-x86-asm-370/69413-serializing-instructions.html):

    Volume 3A: System Programming Guide states

    7.4 SERIALIZING INSTRUCTIONS

    The Intel 64 and IA-32 architectures define several serializing
    instructions. These instructions force the processor to complete all
    modifications to flags, registers, and memory by previous instructions
    and to drain all buffered writes to memory before the next instruction
    is fetched and executed. For example, when a MOV to control register
    instruction is used to load a new value into control register CR0 to
    enable protected mode, the processor must perform a serializing
    operation before it enters protected mode. This serializing operation
    insures that all operations that were started while the processor was
    in real-address mode are completed before the switch to protected
    mode is made.

    The concept of serializing instructions was introduced into the IA-32
    architecture with the Pentium processor to support parallel
    instruction execution. Serializing instructions have no meaning for
    the Intel486 and earlier processors that do not implement parallel
    instruction execution.

    It is important to note that executing of serializing instructions on
    P6 and more recent processor families constrain speculative execution
    because the results of speculatively executed instructions are
    discarded. The following instructions are serializing instructions:

    o Privileged serializing instructions – MOV (to control register,
    with the exception of MOV CR8), MOV (to debug register), WRMSR, INVD,
    INVLPG, WBINVD, LGDT, LLDT, LIDT, and LTR.

    o Non-privileged serializing instructions – CPUID, IRET, and RSM.

    When the processor serializes instruction execution, it ensures that
    all pending memory transactions are completed (including writes
    stored in its store buffer) before it executes the next instruction.
    Nothing can pass a serializing instruction and a serializing
    instruction cannot pass any other instruction (read, write,
    instruction fetch, or I/O). For example, CPUID can be executed at any
    privilege level to serialize instruction execution with no effect on
    program flow, except that the EAX, EBX, ECX, and EDX registers are
    modified.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to build a QR-code for my url as small as possible -
Is it recommended to count in small loops (where possible) down from length -
Possible Duplicate: How do you email source code without getting flagged as spam? How
To make my Ant Generated swf as small as possible, i used the Runtime
I'm trying to set the last three columns to be as small as possible
As a good practice i'm tring to hydrate an object as small as possible
Possible Duplicate: USD Currency Formatting in Java All- I have a small problem in
Is it possible to prefix the li items with a small image ? I
Possible Duplicates: How would I implement stackoverflow’s hovering dialogs? i want a small box
I'm creating a small service using api-libraries, such as Twitter. Is it possible to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.