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

  • SEARCH
  • Home
  • 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 5973359
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T20:47:22+00:00 2026-05-22T20:47:22+00:00

I have an inline AT&T style assembly block, which works with XMM registers and

  • 0

I have an inline AT&T style assembly block, which works with XMM registers and there are no problems in Release configuration of my XCode project, however I’ve stumbled upon this strange error (which is supposedly a GCC bug) in Debug configuration… Can I fix it somehow? There is nothing special in assembly code, but I am using a lot of memory constraints (12 constraints), can this cause this problem?

  • 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-05-22T20:47:22+00:00Added an answer on May 22, 2026 at 8:47 pm

    Not a complete answer, sorry, but the comments section is too short for this …

    Can you post a sample asm("..." :::) line that demonstrates the problem ?

    The use of XMM registers is not the issue, the error message indicates that GCC wanted to create code like, say:

    movdqa (%rax),%xmm0
    

    i.e. memory loads/stores through pointers held in general registers, and you specified more memory locations than available general-purpose regs (it’s probably 12 in debug mode because because RBP, RSP are used for frame/stackpointer and likely RBX for the global offset table and RAX reserved for returns) without realizing register re-use potential.

    You might be able to eek things out by doing something like:

    void *all_mem_args_tbl[16] = { memarg1, memarg2, ... };
    void *trashme;
    
    asm ("movq (%0), %1\n\t"
         "movdqa (%1), %xmm0\n\t"
         "movq 8(%0), %1\n\t"
         "movdqa (%1), %xmm1\n\t"
         ...
         : "r"all_mem_args_tbl : "r"(trashme) : ...);
    

    i.e. put all the mem locations into a table that you pass as operand, and then manage the actual general-purpose register use on your own. It might be two pointer accesses through the indirection table, but whether that makes a difference is hard to say without knowing your complete assembler code piece.

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

Sidebar

Related Questions

I have some less like below: .char2, .char3, .char5, .char6{ display:inline-block; position:relative; &:hover{ .text-shadow(@blueDark,
I have the following function: inline auto iterateSomething(obj & o) { auto iterators =
I have this HTML code: <body> <div id=div0 style=display:inline; background-color:green; width:100%> <div id=div1 style=display:inline;
i have the following form <form action=#!/search/ method=get style=display:inline; id=hdr_q> <table cellpadding=0 cellspacing=0> <tr><td><input
I have an inline audio file to be played in android using html5. I
I have an inline member function defined under class MyClass int MyClass::myInlineFunction(); This function
I have an inline TVF that accept a primary key of a table and
I have studied that The inline specifier is a hint to the compiler that
I have a fancybox for inline item that contains a vimeo video ebmedded by
I have an admin model with a few inline models included with it (see

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.