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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T13:51:54+00:00 2026-05-26T13:51:54+00:00

What is the equivalent of __declspec( naked ) in gcc/g++ ? __declspec( naked )

  • 0

What is the equivalent of __declspec( naked ) in gcc/g++? __declspec( naked ) is actually used to declare a function without any epilogue and prologue.

  • 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-26T13:51:55+00:00Added an answer on May 26, 2026 at 1:51 pm

    I believe there is no such equivalent with a recent GCC under Linux. The compiler emit prologues and epilogues when appropriate, and you should leave that decision to it. It may be quite good at making prologues or epilogues quite small, or even sometimes non-existent.

    You could code your function in assembly. Or you can put asm statements inside your function.

    And you did not tell why you want to do that. What is your goal, and why precisely are you asking?

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

Sidebar

Related Questions

Is there a Linux equivalent of __declspec(dllexport) notation for explicitly exporting a function from
Is there an equivalent Matlab dot function in numpy? The dot function in Matlab:
What is the SBT equivalent (if any) of Ant targets? For example, a snippet
Is there any equivalent to Collections.getOnlyElement() that works with arrays? I'm aware it's a
Is there a g++ equivalent to Visual Studio's __declspec(novtable) argument? Basically, in a pure
What is the equivalent code in jQuery for the below JavaScript function? function attachSomeHandler(in)
Is there any equivalent of permview.exe in .NET 4? A search on permview on
Is there any method equivalent to Rails / Flask ’s url_for on Express.js ?
Is there an equivalent of right() function that I can use in jquery. I
C# equivalent to php mysql_real_escape_string function or similar function? mysql_real_escape_string() calls MySQL's library function

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.