Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
译一事,吾亦试
Compiler2023-HUST-Vrabche
Commits
551be593
Commit
551be593
authored
1 year ago
by
译一事,吾亦试
Browse files
Options
Download
Patches
Plain Diff
add Врабче welcome.
parent
3410df01
main
1940
5729
5814
5845
arm
58.45
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
FMain.cpp
+17
-2
FMain.cpp
with
17 additions
and
2 deletions
+17
-2
FMain.cpp
+
17
−
2
View file @
551be593
...
...
@@ -81,6 +81,21 @@ void frontEnd(std::istream& in, std::ostream& out, string filename = "")
IRCtrl
::
g_builder
->
setFilename
(
filename
);
IRCtrl
::
g_builder
->
build
(
out
);
}
void
welcome
()
{
auto
s
=
R"(
,
`7MM"""Yp, ,dMMMP'
MM Yb dP
MM dP `7MMpdMAo. ,6"Yb. M,dW"Wb.`7MMF'`7MMF'.gP"Ya
MM"""bg. MM `Wb 8) MM MW' `Wb MM MM ,M' Yb
MM `Y MM M8 ,pm9MM MM M8 ``=.='MM 8M""""""
MM ,9 MM ,AP 8M MM YA. ,A9 MM YM. ,
.JMMmmmd9 MMbmmd' `Moo9^Yo.`Ybmd9' .JMML.`Mbmmd'
MM
.JMML. )"
;
cout
<<
s
<<
endl
;
}
void
help
(
const
string
&
filename
=
"./compiler"
)
{
...
...
@@ -108,7 +123,7 @@ int main(int argc, const char** argv)
std
::
string
llvmIRFileName
;
bool
emitLLVMIR
=
false
;
g_log_level
=
MiddleIR
::
LOG_LEVEL_WARNING
;
welcome
();
for
(
int
i
=
1
;
i
<
argc
;
++
i
)
{
std
::
string
arg
(
argv
[
i
]);
...
...
@@ -183,7 +198,7 @@ int main(int argc, const char** argv)
RISC_V_Backend
(
irStream
,
outputStream
);
// ------------------后端输出到outputStream----------------------
cout
<<
"Well done."
<<
endl
;
outputStream
.
close
();
return
0
;
}
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets