본문 바로가기

스프링부트 홍팍 강의 0102 개발환경 만들기 04 뷰템플릿 MVC 패턴0506070809101112131415161718192021222324252627282930313233  02 Hellohttps://build-enough.tistory.com/341  04 mustache, controllerhttps://velog.io/@wijoonwu/mustache-%ED%95%9C%EA%B8%80-%EA%B9%A8%EC%A7%90-%EC%9D%B8%EC%BD%94%EB%94%A9-%EC%98%A4%EB%A5%9807https://castarray.github.io/javaspring/%EC%8A%A4%ED%94%84%EB%A7%81-%EB%B6%80%ED%8A%B8-%EC%83%9D%EC%84%B1%EC%9E%90-%EB%B..
OutputDebugString 은 Exception 을 발생시켜서 동작한다 https://ntquery.wordpress.com/2015/09/07/windows-10-new-anti-debug-outputdebugstringw/ Windows 10: New Anti-Debug OutputDebugStringWPrior to Windows 10, OutputDebugStringW was only a dummy implementation. The function converted the input Unicode string to a simple Ansi string and calls the Ansi version of the function OutputDeb…ntquery.wordpress.com 위 링크에서 가져온 코드를 보면,void __stdcall _OutputDebugS..
[SWIFT] 'main' attribute cannot be used in a module contains top-level code xcode 에서 macos cli 어플리케이션을 swift 언어로 생성하고, main.swift 에 다음과 같이 코딩했다.import Foundation@mainstruct cli_test { static func main() async { print("Hello, World!") }}@main 부분에 'main' attribute cannot be used in a moudle that contains top-level code 라는 빨간색 에러 메시지가 떴다.검색하여, main.swift 의 이름을 다른 이름으로 바꾸어 ( myprogram.swift ) 준 이후에 에러가 사라졌다.main.swift 안에 @main 이 오면 이 에러 메시지가 발생한다.https://medium.com/@..
PE Header
[RUST] rusqlite, LNK1181: cannot open input file 'sqlite3.lib' rust 로 간단한 sqlite 를 사용해 보려고, 유튜브 튜토리얼을 따라해 봤는데, cargo run 을 실행하니 에러가 발생했다. (개발환경은 windows 10) 에러메시지는 다음과 같다. = note: LINK : fatal error LNK1181: cannot open input file 'sqlite3.lib' error: could not compile `rust_sqlite_sample` (bin "rust_sqlite_sample") due to previous error 빌드과정에서 sqlite3.lib 를 찾을 수 없다는 메시지였다. rusqlite 라이브러리를 사용하는데, 라이브러리를 사용하기 위해 Cargo.toml 에 다음과 같이 설정했었었다. [dependencies] rus..
First chance exception 0X406D1388 크롬과 엣지에서 Exception 0X406D1388 덤프가 많이 발생했다. 덤프파일을 windbg 로 열어 analyze -v 를 실행한 스택내용은 다음과 같았다. (크롬 심볼서버 세팅함.) STACK_TEXT: KERNELBASE!RaiseException+0x6a chrome!base::PlatformThreadBase::SetName+0x1ae chrome!base::internal::ThreadGroupImpl::WorkerThreadDelegateImpl::OnMainEntry+0x74 chrome!base::internal::WorkerThread::RunWorker+0x81 chrome!base::internal::WorkerThread::RunPooledWorker+0x18 chrome!..
VSCode Swift Formatter 설정 2023년 9월 현재, vscode 에는 두개의 스위프트 포매터 익스텐션이 있는 것 같다. apple-swift-format 과 SwiftFormat. apple-swift-format 을 써왔었는데, 인덴트가 2로 포맷했다. 개인적으로 가독성이 안 좋았고, xcode 로 열어서 다시 편집하면 4 스페이스로 포맷을 해서, 쓸데없는 변경점이 만들어졌다. 그런데 인덴트를 설정하는 걸 잘 모르겠더라. --- 그래서 SwiftFormat 으로 설정하였다. brew install swiftformat 으로 우선 포매터 프로그램을 설치하고 (SwiftFormat 익스텐션은 swiftformat 이라는 커맨드라인 툴을 이용한다.), vscode 익스텐션들 중에 SwiftFormat 을 찾아서 설치하고 활성화한다. 이..
SIL ( Swift Intermediate Language ) 스위프트 중간 언어 스위프트 컴파일러가 .swift 소스파일을 컴파일하는 과정은 스위프트 언어를 스위프트 중간언어(swift intermediate language)로 우선 만들고, 이것을 다시 llvm IR ( intermediate representation ) 으로 바꾸고, 마지막으로 기계어를 생성하는 단계를 거친다. .swift 소스에서 변환된 SIL 을 보려면 swiftc 를 이용하여 -emit-sil 옵션으로 컴파일 하면 된다. swiftc -emit-sil .swift 아주 간단한 Point 스트럭쳐를 선언하여, 이를 sil 로 변환하면 다음과 같다. struct Point { let x:Int let y:Int } struct Point { @_hasStorage let x: Int { get } @_hasS..