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 9268631
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T14:54:21+00:00 2026-06-18T14:54:21+00:00

The code all worked fine, but then I added directives to create unwinding data

  • 0

The code all worked fine, but then I added directives to create unwinding data, and YASM started refusing to assemble my code.

The build settings are for x64, as proven by “-f x64” in the auto-generated command line: "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\"vsyasm.exe -Xvc -f x64 -o "x64\Debug\\" -l "" -P "" --mapdir= "" -E "" --prefix "" --suffix "" -rnasm -pnasm -m amd64

Normally the -m switch isn’t in there, but I added it for good measure. That didn’t help.

Changing the argument of the -f switch to win64 doesn’t help either: "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\"vsyasm.exe -Xvc -f win64 -o "x64\Debug\\" -l "" -P "" --mapdir= "" -E "" --prefix "" --suffix "" -rnasm -pnasm -m amd64

In this code,

    bits 64
    global s24_fl32_sse2_win64
s24_fl32_sse2_win64:
    proc_frame s24_fl32_sse2_win64
    sub rsp, 8 + 4 * 16
    [alloc_stack 8 + 4 * 16]
    movdqa [rsp], xmm6
    [save_xmm128 xmm6, 0]
    [endprolog]

VSYASM complains about a redefinition of the function label, which probably means that it didn’t recognize proc_frame as a directive. It also says error: unrecognized directive 'alloc_stack' and the same for save_xmm128. It doesn’t complain about endprolog.

Putting the proc_frame in brackets makes the first error go away (the label re-definition), but the manual says to use it without brackets, and it doesn’t solve the problem anyway.

How do I fix this? Preferably in a way that creates proper unwind data.

  • 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-18T14:54:22+00:00Added an answer on June 18, 2026 at 2:54 pm

    I think PROC_FRAME defines the label, so you don’t need the s24_fl32_sse2_win64: line – also a few examples I’ve seen put global s24_fl32_sse2_win64 after the PROC_FRAME – I’m not sure whether this is required or not.

    In addition – alloc_stack and save_xmm128 (without square brackets) are macros (they handle both the stack operation itself and the related unwind primitive) – the unwind primitive versions of these are [allocstack ....] and [savexmm128....].

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

Sidebar

Related Questions

My code worked fine when it was all in one file. Now, I'm splitting
I am trying to deploy a SignalR site on IIS. Code all works fine
I was working OpenCart and added such code to Controller to show all the
I have problem with setTimeout. In all major browsers it works fine but not
Hi all i have a background worker thread and some unmanaged code dlls ,
I write the following code all the time to handle when the enter key
I have code that all over the place(probably 20-30 instances) does this: <widget>.setVisible((condition ==
I have written this code outside all functions: int l, k; for (l =
I am trying to code an all in one HTML/PHP contact from with error
How do I execute my custom code after all normal processing associated to changing

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.