본문 바로가기

22년 2학기 학교공부

(23)
1011 컴구 Review Supporting procedures Before performing the desired task - Caller puts parameters in some appropriate place - Caller executes jal instruction - Callee acquires the storage resources in stack to save some "saved registers" and to allocated some local variables - Callee uses the parameters After performing the desired task - Callee restores some "saved registers" and releases the acquired s..
1011 객지설 p.50 오버로딩한 operator+ : n1 + n2를 쓴다고 치면 n1을 this로 받고 n2를 인자로 받는거임
[SYSP] LEC6. Assembly control p.7 목적지의 하위 바이트를 조건코드 조합에 따라 0 또는 1로 설정 수정 -> 조건코드 조합 X에 따라 ByteReg를 0 또는 1로 설정 p.9 조건코드 조합을 한 바이트로 표시 -> 한 바이트에 저장 '주소지정 가능한' 지우기 '오퍼랜드 레지스터의' 다른 바이트 값은 불변 대개 movzbl 추가로 사용(byte를 long으로 zero 패딩 후 mov) p.10 조건코드에 따라서 코드의 실행 위치를 이동 -> 조건코드 X가 참인 경우 다음 코드의 실행을 Label로 이동
OOP with C++ (2) - Dynamic memory allocation and deallocation Stack data structure A stack is a data structure in which last-in data is firstly popped out ○ We call it Last In First Out (LIFO) Function call stack Lots of programming language runtimes utilizes a call stack to manage function calls ○ A call stack is a stack that stores functions’ local data ○ When calling a function, the callee function data is pushed onto the call stack ○ When returning a f..
OOP with C++ (2) - Function calls in C++
OOP with C++ (2) - C++ program memory model LHS and RHS - LHS : left-hand-side expression - RHS : right-hand-side expression ex) x = 10 LHS : x RHS : 10 Basics in C++ memeory model * Each variable has an address - &x (only in RHS) : return the address of the variable x - x (in RHS) : return the value assigned to the address of the variable - x (in LHS) : store the RHS value to the address of the variable Pointers : a value points to an ad..
JS HTML DOM JavaScript HTML DOM(Document Object Model) - When a web page is loaded, the browser creates a Document Object Model of the page. The HTML DOM model is constructed as a tree of Objects My Link My header With the object model, JavaScript gets all the power it needs to create dynamic HTML: JavaScript can change all the HTML elements in the page. JavaScript can change all the HTML attributes in the ..
0929 시프 어셈블리어 : 기계어에 1:1 대응관계를 갖는 명령어로 이루어진 low-level 프로그래밍 언어 C 언어로 프로그램을 작성할 때는 프로그램이 어떻게 내부적으로 구현되는지 알기 어렵다 어셈블리어로 프로그램을 작성할 때는 프로그래머는 프로그램이 어떻게 메모리를 이용하는지, 어떤 명령어를 이용하는지를 정확히 표시해야 한다. 물론 고급 언어로 프로그램으로 프로그램할 때가 대개의 경우 보다 안전하고, 편리하다 -> 코드 번역을 해줌 어셈블리어로 잘못 짰다가는 컴퓨터가 죽을 수도 있음 어셈블리어로 코딩한다는건 '컴파일러'를 쓰지 않는다는 것. 게다가 최근의 Optimizing compiler들은 웬만한 전문 어셈블리 프로그래머가 짠 프로그램보다 더 훌륭한 어셈블리 프로그램을 생성해 준다. 고급언어의 특성 - 대형..