Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.os.linux.development.system > #590

Re: How to create a fixed address for a vaiable ??

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From Tauno Voipio <tauno.voipio@notused.fi.invalid>
Newsgroups comp.os.linux.development.system
Subject Re: How to create a fixed address for a vaiable ??
Date Wed, 22 Jan 2014 22:47:57 +0200
Organization A noiseless patient Spider
Lines 54
Message-ID <lbpapu$d1m$1@dont-email.me> (permalink)
References <ecedda60-477b-4732-bca3-70310bd33792@googlegroups.com> <f3pud9hhcq769e316b15r861jkct0on3q0@4ax.com> <ebad653f-3306-4c02-8018-93009779195d@googlegroups.com> <740440d7-f7a7-467d-bf63-ed4b2a0ccc46@googlegroups.com> <slrnldvom0.81f.grahn+nntp@frailea.sa.invalid> <lbp5el$bp9$1@dont-email.me> <slrnle092m.81f.grahn+nntp@frailea.sa.invalid>
Mime-Version 1.0
Content-Type text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding 7bit
Injection-Date Wed, 22 Jan 2014 20:47:58 +0000 (UTC)
Injection-Info mx05.eternal-september.org; posting-host="dce27cd8eec3af2591ca4435a27d23b3"; logging-data="13366"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19+Xgg2FsCg72So92MJLEuAOdMzLfaVglA="
User-Agent Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:24.0) Gecko/20100101 Thunderbird/24.2.0
In-Reply-To <slrnle092m.81f.grahn+nntp@frailea.sa.invalid>
Cancel-Lock sha1:vceExFZrAZBPpbbbbvOiI1iu9BU=
Xref csiph.com comp.os.linux.development.system:590

Show key headers only | View raw


On 22.1.14 22:04, Jorgen Grahn wrote:
> On Wed, 2014-01-22, Tauno Voipio wrote:
>> On 22.1.14 17:24, Jorgen Grahn wrote:
>>> On Wed, 2014-01-22, Hemanth Venkatappa wrote:
>>> ...
>>>> In my C program :
>>>> __attribute__ ((section(".myvarloc"))) uint8 measurements [30];
>>>>
>>>> my problem : how to add this linker script to my Eclipse IDE ??
>>>> OR How to link with it my C program ???
>>>>
>>>> Could you please help me ??
>>>
>>> As far as I can see, you got no help with Eclipse here.  You should
>>> probably ask in some Eclipse-related group about how to pass linker
>>> information.
>>>
>>> Most people don't use Eclipse, so maybe noone here can answer at all.
>>
>> There is not enough information to give a meaningful response.
>>
>> There is no mention of the toolkit (seems to be GNU) or the way
>> the makefile generation is set up.
>
> This is Linux; surely we can assume gcc and ld?  As for Makefiles, I
> assumed that the Eclipse "project" or "solution" or whatever it's
> called doesn't use a Makefile.  (I strongly recommend a Makefile-based
> build, by the way.  My experiences with IDE-specific ways of building
> have been rather discouraging.)
>
>> Also, it would be useful to
>> know the target system. In Linux, there is no sense to locate
>> into a known virtual (program-seen) address, as it may be in
>> nearly any physical address (processor bus seen).
>
> I think all of that got fixed elsewhere in the thread.  As far as I
> can tell, the OP knows more or less what to tell the compiler (and
> seems to have a reason) but doesn't know how to tell Eclipse to tell
> the compiler.
>
> /Jorgen


Eclipse CDT (C development toolkit) can use a standard Makefile
or it can create one of its own from the project specs, but the
OP has not told us what he's using.

I'm using Eclipse and CDT for Cortex-M cross-development
with Makefiles and own hardware-tailored loader scripts.

-- 

-Tauno

Back to comp.os.linux.development.system | Previous | NextPrevious in thread | Find similar


Thread

How to create a fixed address for a vaiable ?? hemanthvenkatappa@gmail.com - 2014-01-20 16:23 -0800
  Re: How to create a fixed address for a vaiable ?? Lusotec <nomail@nomail.not> - 2014-01-21 10:57 +0000
  Re: How to create a fixed address for a vaiable ?? Tim Roberts <timr@probo.com> - 2014-01-21 22:26 -0800
    Re: How to create a fixed address for a vaiable ?? Hemanth Venkatappa <hemanthvenkatappa@gmail.com> - 2014-01-22 01:03 -0800
      Re: How to create a fixed address for a vaiable ?? Hemanth Venkatappa <hemanthvenkatappa@gmail.com> - 2014-01-22 01:05 -0800
        Re: How to create a fixed address for a vaiable ?? Jorgen Grahn <grahn+nntp@snipabacken.se> - 2014-01-22 15:24 +0000
          Re: How to create a fixed address for a vaiable ?? Tauno Voipio <tauno.voipio@notused.fi.invalid> - 2014-01-22 21:16 +0200
            Re: How to create a fixed address for a vaiable ?? Jorgen Grahn <grahn+nntp@snipabacken.se> - 2014-01-22 20:04 +0000
              Re: How to create a fixed address for a vaiable ?? Tauno Voipio <tauno.voipio@notused.fi.invalid> - 2014-01-22 22:47 +0200

csiph-web