GCC generates invalid character when compiling hello world program
bootmgr@163.com
bootmgr@163.com
Sun Aug 8 05:44:26 GMT 2021
The gcc I compiled generated wrong assembly code on Windows.
This gcc is Canadian compiled from Ubuntu, and I did not apply any patches on https://github.com/msys2/MINGW-packages.
Error Messages:
H:\cxx>gcc hw.c
C:\Users\ADMINI~1\AppData\Local\Temp\ccaNW5Tf.s: Assembler messages:
C:\Users\ADMINI~1\AppData\Local\Temp\ccaNW5Tf.s:39: Warning: missing closing `"'
C:\Users\ADMINI~1\AppData\Local\Temp\ccaNW5Tf.s:39: Error: invalid character (0xa in mnemonic
GCC configured by ../gcc/configure --disable-multilib --disable-nls --disable-rpath --disable-win32-registry --enable-gra
phite --enable-languages=c,c++,lto --enable-mingw-wildcard --enable-threads=posix --disable-libstdcxx-pch --disable-libs
tdcxx-verbose --enable-fully-dynamic-string --enable-large-address-aware --host=x86_64-w64-mingw32 --target=x86_64-w64-m
ingw32 --prefix=/mingw64
-------------- next part --------------
A non-text attachment was scrubbed...
Name: source code and assembly code.tgz
Type: application/x-gzip
Size: 672 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc-help/attachments/20210808/e0e4e167/attachment.bin>
More information about the Gcc-help
mailing list