Re: C- Syntax to allocate Global variables to consecutive memory locations



On Apr 9, 5:56 pm, R Pradeep Chandran <s...@xxxxxxxxx> wrote:

Are you sure that only the link process is required. I think that you
need to compile (or assemble) the file containing the declaration of
abc (or _abc).

To put it simply, somehow you need to put the new desired value of the
constant into a form that the linker can understand.

You could open an old .o file in emacs and manually alter it...

You could put the definitions alone into a small .c file and recompile
only those.
Or the same with an assembly language file that you would assemble.

You could write a linker that lets you define things on the command
line

You could write a tool that takes command line options and creates an
object file...

.



Relevant Pages

  • Re: Using terminal output as input
    ... The OP did say exactly what he wants - that the output of one command ... commandand using it to assemble another command (as opposed to ... traditional pipe model where the _raw_ output of a program, ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • Re: Using terminal output as input
    ... Are you asking about manually selecting part of the output of a command ... and using it to assemble another command (as opposed to piping the whole ... assembled (or into whatever process is reading from your virtual console) ...
    (Debian-User)
  • How to set assemble version compiling single file ?
    ... When I compile a single file using command line, ... Is there anyway to set the assemble version in the class or in command line? ...
    (microsoft.public.dotnet.framework)
  • Re: masm32 and old code fragments problem
    ... The linker that comes with MASM32 is the ... I think that's how Masm does it. ... > do have NASM if anyone can help me learn the difference so I can just ... That'll actually assemble and run, using Nasm's "-f bin" mode (that's ...
    (alt.lang.asm)
  • Re: Help with Unresolved External.
    ... > unresolved external error when trying to compile. ... It is the *linker* which emits this message, ... The linker is trying to assemble the complete executable. ...
    (comp.lang.cpp)