Please note that User Registration has been temporarily disabled due to a recent increase in automated registrations. If anyone needs an account, please request one here: RequestAccount. Thanks for your patience!--Wmat (talk)
Please email User:Wmat if you experience any issues with the Request Account form.

Difference between revisions of "User:J Lipscomb"

From eLinux.org
Jump to: navigation, search
m
m
Line 37: Line 37:
 
}
 
}
 
</pre>
 
</pre>
 +
|}
  
 
== Chapter 4 Listings ==
 
== Chapter 4 Listings ==

Revision as of 19:44, 21 March 2010


I am currently an Electrical Engineering undergraduate student at Rose-Hulman Institute of Technology in Terre Haute, Indiana.

Chapter 2 Listings

Number Caption Listing
2-4 Hello World, Embedded Style
#include <stdio.h>

int bss_var;        /* Uninitialized global variable */

int data_var = 1;   /* Initialized global variable */

int main(int argc, char **argv)
{
  void *stack_var;            /* Local variable on the stack */
  
  stack_var = (void *)main;   /* Don't let the compiler */
                              /* optimize it out */

  printf("Hello, World! Main is executing at %p\n", stack_var);
  printf("This address (%p) is in our stack frame\n", &stack_var);

  /* bss section contains uninitialized data */
  printf("This address (%p) is in our bss section\n", &bss_var);

  /* data section contains initializated data */
  printf("This address (%p) is in our data section\n", &data_var);

  return 0;
}

Chapter 4 Listings

Number Caption Listing
4-3 Kernel Subdirectory omap1
lipscojl@Kratos:/dump/hw/oe/linux-omap-2.6/arch/arm$ ls -l mach-omap1
total 432
-rwxrwx--x 1 brian elinux  7080 2010-03-11 23:14 board-ams-delta.c
-rwxrwx--x 1 brian elinux  9081 2010-03-11 23:14 board-fsample.c
-rwxrwx--x 1 brian elinux  2514 2010-03-11 23:14 board-generic.c
-rwxrwx--x 1 brian elinux 11159 2010-03-11 23:14 board-h2.c
-rwxrwx--x 1 brian elinux  1585 2010-03-11 23:14 board-h2.h
-rwxrwx--x 1 brian elinux  1862 2010-03-11 23:14 board-h2-mmc.c
-rwxrwx--x 1 brian elinux 10227 2010-03-11 23:14 board-h3.c
-rwxrwx--x 1 brian elinux  1550 2010-03-11 23:14 board-h3.h
-rwxrwx--x 1 brian elinux  1668 2010-03-11 23:14 board-h3-mmc.c
-rwxrwx--x 1 brian elinux  8037 2010-03-11 23:14 board-htcherald.c
-rwxrwx--x 1 brian elinux 11497 2010-03-11 23:14 board-innovator.c
-rwxrwx--x 1 brian elinux 10347 2010-03-11 23:14 board-nokia770.c
-rwxrwx--x 1 brian elinux 15686 2010-03-11 23:14 board-osk.c
-rwxrwx--x 1 brian elinux  9547 2010-03-11 23:14 board-palmte.c
-rwxrwx--x 1 brian elinux  7198 2010-03-11 23:14 board-palmtt.c
-rwxrwx--x 1 brian elinux  8167 2010-03-11 23:14 board-palmz71.c
-rwxrwx--x 1 brian elinux  7691 2010-03-11 23:14 board-perseus2.c
-rwxrwx--x 1 brian elinux 10377 2010-03-11 23:14 board-sx1.c
-rwxrwx--x 1 brian elinux  1614 2010-03-11 23:14 board-sx1-mmc.c
-rwxrwx--x 1 brian elinux  6996 2010-03-11 23:14 board-voiceblue.c
-rwxrwx--x 1 brian elinux 14005 2010-03-11 23:14 clock.c
-rwxrwx--x 1 brian elinux 24059 2010-03-11 23:14 clock_data.c
-rwxrwx--x 1 brian elinux  3880 2010-03-11 23:14 clock.h
-rwxrwx--x 1 brian elinux  7542 2010-03-11 23:14 devices.c
-rwxrwx--x 1 brian elinux   692 2010-03-11 23:14 flash.c
-rwxrwx--x 1 brian elinux  5186 2010-03-11 23:14 fpga.c
-rwxrwx--x 1 brian elinux  1025 2010-03-11 23:14 i2c.c
-rwxrwx--x 1 brian elinux  6447 2010-03-11 23:14 id.c
drwxrwx--x 3 brian elinux  4096 2010-03-11 23:14 include
-rwxrwx--x 1 brian elinux  3552 2010-03-11 23:14 io.c
-rwxrwx--x 1 brian elinux  7074 2010-03-11 23:14 irq.c
-rwxrwx--x 1 brian elinux  6527 2010-03-11 23:14 Kconfig
-rwxrwx--x 1 brian elinux 10873 2010-03-11 23:14 lcd_dma.c
-rwxrwx--x 1 brian elinux  1461 2010-03-11 23:14 leds.c
-rwxrwx--x 1 brian elinux   146 2010-03-11 23:14 leds.h
-rwxrwx--x 1 brian elinux  3222 2010-03-11 23:14 leds-h2p2-debug.c
-rwxrwx--x 1 brian elinux  1565 2010-03-11 23:14 leds-innovator.c
-rwxrwx--x 1 brian elinux  2044 2010-03-11 23:14 leds-osk.c
-rwxrwx--x 1 brian elinux  4798 2010-03-11 23:14 mailbox.c
-rwxrwx--x 1 brian elinux  1776 2010-03-11 23:14 Makefile
-rwxrwx--x 1 brian elinux    87 2010-03-11 23:14 Makefile.boot
-rwxrwx--x 1 brian elinux  5597 2010-03-11 23:14 mcbsp.c
-rwxrwx--x 1 brian elinux 20719 2010-03-11 23:14 mux.c
-rwxrwx--x 1 brian elinux  2279 2010-03-11 23:14 opp_data.c
-rwxrwx--x 1 brian elinux   705 2010-03-11 23:14 opp.h
-rwxrwx--x 1 brian elinux 19611 2010-03-11 23:14 pm.c
-rwxrwx--x 1 brian elinux  9084 2010-03-11 23:14 pm.h
-rwxrwx--x 1 brian elinux  6043 2010-03-11 23:14 serial.c
-rwxrwx--x 1 brian elinux  9282 2010-03-11 23:14 sleep.S
-rwxrwx--x 1 brian elinux  1543 2010-03-11 23:14 sram.S
-rwxrwx--x 1 brian elinux  7096 2010-03-11 23:14 time.c
-rwxrwx--x 1 brian elinux  6121 2010-03-11 23:14 timer32k.c