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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T17:58:38+00:00 2026-06-06T17:58:38+00:00

I want to use a global variable in inline assembly. asm( LDR R0,g_TsInitStackPointerAddress); Here

  • 0

I want to use a global variable in inline assembly.

asm(” LDR R0,g_TsInitStackPointerAddress”);

Here g_TsInitStackPointerAddress is a global variable. While compiling its not showing any error .

But while linking it shows the following error

[elxr] (error) out of range: 0x1001326 (unsigned) didn’t fit in 12
bits while performing relocation type R_ARM_POOL (4) at address
0x10013e0 from InitStack+0x20 (drv.o(.text)+0x1a4), to
g_TsInitStackPointerAddress+0x0 ((COMMON)+0xb6)

Here My function name is InitStack and File name is drv. I am unable to understand the error.

Processor Used : Cortex R4
Compiler : Greenhills

  • 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-06T17:58:41+00:00Added an answer on June 6, 2026 at 5:58 pm

    Got the Solution

    __asm(“g_TsInitStackPointerAddress_a: DCD g_TsInitStackPointerAddress “);

    Give this statement inside that function then it’ll take that variable in the inline assembly

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

Sidebar

Related Questions

I am trying to use variable in different function, I want to set global
I want to use a global variable for using as argument for two or
I am using xslt1.0.I want to use a global variable such a way that,
As total JavaScript beginner I am unable to use global variable while trying to
If you want to use global functions and variable dynamically you can use: window[functionName](window[varName]);
i want declare on form as global variable and then work with that in
I just asked another question here: global variable and reduce database accesses in PHP+MySQL
How to declare and use global variable with extern in Objective C and other
In my WPF applciation I would like to use global variable, the purpose is
I want to use Global variale in my project so I have simply take

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.