-
Your Name김상윤 Question구현 중 print 관련 궁금한 사항이 있어 질문 남기게 되었습니다. 문서에는 print(x)로 나와 있어서 단순히 variable만을 출력하는 식으로 구현을 했었는데, 이를 variable이 아닌 expression evaluation을 하는 식으로 바꾸어 구현했더니 점수가 올랐습니다. 이렇다면 print(x)가 아닌 print(E) 와 같은 방식으로 바뀌어야 되는 것이 아닌가요? 혹시 제가 잘못 이해하고 있는 부분이 있다면 설명 부탁드립니다. I have a question about print during implementation, so I'm leaving a question. The document says print(x), so I implemented it by simply printing only the variable, but when I changed it to evaluate expression instead of variable, the score grows. Therefore, shouldn't it be changed to something like print(E) instead of print(x)? If there's anything I misunderstood, please explain. Thank you. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
LLVM IR은 SSA-form으로 작성되기 때문에 대신에 지금 문서의 실행의미 자체가 수학적으로 메모리 간의 transition으로 표현되기 때문에 |
Beta Was this translation helpful? Give feedback.
-
상윤님, 안녕하세요. 감사합니다. Hi, In fact, it should have been implemented considering LLVM's syntax. Thank you. |
Beta Was this translation helpful? Give feedback.
상윤님, 안녕하세요.
실제로는 llvm의 syntax를 고려하여 구현되어야 했던 것이 맞습니다.
과제의 syntax만으로 혼동이 없게 하기 위해서
print(E)
로 표기하는 게 더 올바를 것 같습니다.감사합니다.
Hi,
In fact, it should have been implemented considering LLVM's syntax.
Defining it as
print(E)
seems more appropriate to avoid confusion when using only this homework's syntax.Thank you.