This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
About input_scrub_next_buffer() for input_line_pointer
- From: libra <mr924352 at cs dot nthu dot edu dot tw>
- To: binutils at sources dot redhat dot com
- Date: Mon, 19 Jul 2004 10:37:02 +0800
- Subject: About input_scrub_next_buffer() for input_line_pointer
Hello,all
The "input_line_pointer" is pointer to the whole *.s file that want to be
assembled by asembler.
The "input_line_pointer" is set by input_scrub_next_buffer(&input_line_pointer)
in read_a_source_file() function which is defined in read.c
My question is that:
If my test.s is as following:
.text
b (loop)
1. Then, the input_line_pointer is pointer like "\n.text\n b (loop)\n"
^^^^^^^^
If my test.s is as following:
.text
(1,1) b (loop)
2. Then, the input_loine_pointer is pointer like "\n.text\n (1,1) b(loop)"
^^^^^^^
The difference is that when i add "(1,1) in front of the b (loop)",
the SPACE between "b" and "(loop)" disappear.
We need the SPACE between b and (loop), in order to separate the instruction
and operand.
Anyone can tell me what happen?
Thanks a lot!!