gccThe compiler reports the following error.
hello.s: warning: end of file, not end of line; insert new line
hello.s:1: Error: junk at end of line, first unrecognized character valued 0x7f
hello.s:1: Error: junk at end of line, first unrecognized character valued 0x3
hello.s:1: Error: junk at end of line, first unrecognized character is >' hello.s:1: Error: junk at end of line, first unrecognized character valued 0x1 hello.s:1: Error: junk at end of line, first unrecognized character is
0′
hello.s:1: Error: junk at end of line, first unrecognized character is @' hello.s:1: Error: junk at end of line, first unrecognized character is
(‘
hello.s:1: Error: junk at end of line, first unrecognized character is @' hello.s:1: Error: junk at end of line, first unrecognized character is
8′
hello.s:1: Error: junk at end of line, first unrecognized character is @' hello.s:1: Error: junk at end of line, first unrecognized character valued 0x1b hello.s:1: Error: junk at end of line, first unrecognized character valued 0x1a hello.s:1: Error: junk at end of line, first unrecognized character valued 0x1a hello.s:1: Error. junk at end of line, first unrecognized character valued 0x6 hello.s:1: Error: junk at end of line, first unrecognized character valued 0x4 hello.s:1: Error: junk at end of line, first unrecognized character is
@’
There is no correct solution on the Internet, so I studied it carefully. gcc compiler is fine, the problem is that the gcc code is typed in the wrong case!
The correct command is as follows
gcc -E hello.c -o hello.i -v
gcc -S hello.i -o hello.s -v
gcc -c hello.s -o hello.o -v
When generating the. S file, the s of GCC – s should be capitalized
otherwise, an error will occur when GCC – C generates the. O file!!
Read More:
- [Solved] SyntaxError:JSON.parse:unexpected character at line 1 column 1 of the JSON data
- GCC error: unrecognized command line option ‘-no-pie’
- frida.InvalidArgumentError: script(line *): SyntaxError: unexpected end of string
- package golang.org/x/net/XXX: unrecognized import path “golang.org/x/net/xxx“…
- error: expected ‘;‘ at end of member declaration and expected ‘)‘ before ‘&‘ toke Errors
- [Solved] OpenGL PowerVR SDK Compiling Error: Could NOT find X11 (missing: X11_X11_INCLUDE_PATH X11_X11_LIB)
- [Solved] Rocketmq console connect to x.x.x.x:10911 failed Error
- Memory write error at 0x100000. MMU section translation fault [How to Solve]
- Compile .h file with error “error: backslash-newline at end of file [-Werror]:
- Error calling function %s at New Error
- [Solved] Keil5 Error: error 65: access violation at 0x08040000 : no ‘execute/read‘ permission
- Solution: configuration of multiple front ends separated from front end and back end of nginx
- VITIS Error: memory wirte error at 0x0 [How to Solve]
- [Solved] ZYNQ download program error: Memory write error at 0x100000. APB
- [Solved] Opencv Error: Error: Assertion failed (data) in cv::Mat::at, file … mat.inl.hpp, line 897(Accessed pixels of non-existent matrix)
- [Solved] ZYNQ Programs Error: memory write error at 0x100000.APB AP transaction error,DAP status f0000021
- [Solved] Error running XxlJobExecutorHiveApplication. Command line is too long. Shorten the command line via
- SpringBoot Error running ‘Application’: Command line is too long.Shorten command line for
- [Solved] pyinstaller: error: unrecognized arguments: sklearn
- [Solved] Leetcode Error: AddressSanitizer: SEGV on unknown address 0x55eb765425b8 (pc 0x55eb76542b86 bp 0x7ffd1bd2