From: "bootmgr@163.com" <bootmgr@163.com>
To: gcc-help@gcc.gnu.org
Subject: GCC generates invalid character when compiling hello world program
Date: Sun, 8 Aug 2021 13:44:26 +0800 (CST) [thread overview]
Message-ID: <7e842be5.bf2.17b244a7b83.Coremail.bootmgr@163.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 846 bytes --]
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
[-- Attachment #2: source code and assembly code.tgz --]
[-- Type: application/x-gzip, Size: 672 bytes --]
next reply other threads:[~2021-08-08 5:44 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-08-08 5:44 bootmgr [this message]
2021-08-08 9:49 ` Stefan Ring
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=7e842be5.bf2.17b244a7b83.Coremail.bootmgr@163.com \
--to=bootmgr@163.com \
--cc=gcc-help@gcc.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).