Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Tucker의 Go 언어 프로그래밍

0. 개발 환경 구축

  1. Go 언어 공식 홈페이지에서 OS에 맞는 파일을 다운로드
  2. IDE에서 Go 확장 프로그램 설치

코드 실행 방법

  1. .go 파일 작성
  2. 터미널에서 해당 패키지로 이동
  3. go mod init 프로젝트명/패키지 명령어로 모듈 생성
  4. go build 로 실행 파일 생성
  5. ./파일명 으로 실행 (윈도우의 경우 .exe 파일)

1. 컴퓨터 동작 원리

  1. 프로그램 로드
    • 운영체제는 프로그램 실행 파일을 메모리에 복사
  2. 데이터 로드 및 캐싱
    • 메모리에서 연산에 필요한 데이터를 CPU 내부의 캐시로 복사
  3. 연산 및 저장
    • CPU는 연산에 사용할 데이터를 레지스터로 복사
    • 레지스터는 실제 연산이 수행되는 특수한 데이터 공간
    • 그 다음 줄 연산 실행
  4. 프로그램 종료 때까지 2~3 반복

2. 프로그래밍 언어

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages