CSE 15 Lecture Notes - Lecture 2: Java Virtual Machine, Bracket, Git
Document Summary
What is git: a source-code control system, how it works, write code, hand it to git, git stores it, you work on code some more, break it, git will give you old code back. What is a compiler: programs execute machine language, not a programming language, programming language use gcc to make assembly (. s) files, something humans can read, take bits and add them up to make something. o files are binary: assembly code turns into ld a. out ld files take . o files and connects them together to make a program. Libraries: shorthand for longer pieces of code, ex: sin(x), cos(x), print, etc. c files: ccp/cc files, actual code programs that do stuff. h files: stands for header files, declarations. Inside files are declarations, important one is int main(: must be integer function because it"s a function that returns something, 0 is if it executes successful, any other number if it isn"t successful (or -1)