CPSC 355 Lecture Notes - Lecture 26: .Bss, Gnu Debugger, String Literal

111 views3 pages

Document Summary

Cpsc 355 - lecture 26 nov 16th. Uninitialized space can be allocated with the . skip pseudo-op: eg: 10 elements int array myarray: Use . global, if the variable is to be made available to other compilation units: eg: myvar_m: The bss section usually only uses the . skip pseudo-op: all bss memory is zeroed before program execution. Initializing memory to non-zero values (with . word, . hword, etc. (cid:895) does(cid:374)(cid:859)t (cid:373)ake se(cid:374)se: eg: array_m: c_m: h_m: Programmer-initialized constants are put into the text section: must be before or between functions, eg: func1: const_m: func2: American standard code for information interchange: encodes characters using 7 bits, stored in a byte. In assembly, character constants can be denoted with: the hex code. Eg: mov w19, 0x5a: the character in single quotes. Note: may interfere with m4 w19, (cid:858))(cid:859: note: in gdb, use p/c to print register contents as a character. A string is an array of characters.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents