embedded

What does this GCC error “… relocation truncated to fit…” mean?

别来无恙 提交于 2019-11-26 02:37:22
问题 I am programming the host side of a host-accelerator system. The host runs on the PC under Ubuntu Linux and communicates with the embedded hardware via a USB connection. The communication is performed by copying memory chunks to and from the embedded hardware\'s memory. On the board\'s memory there is a memory region which I use as a mailbox where I write and read the data. The mailbox is defined as a structure and I use the same definition to allocate a mirror mailbox in my host space. I

Understanding Linux /proc/id/maps

不羁的心 提交于 2019-11-26 01:03:13
问题 I am trying to understand my embedded Linux application\'s memory use. The /proc/pid/maps utility/file seems to be a good resource for seeing the details. Unfortunately I don\'t understand all the columns and entries. What does the anonymous inode 0 entries mean? These seem to be some of the larger memory segments. 回答1: Each row in /proc/$PID/maps describes a region of contiguous virtual memory in a process or thread. Each row has the following fields: address perms offset dev inode pathname

Understanding Linux /proc/id/maps

梦想的初衷 提交于 2019-11-25 23:20:02
I am trying to understand my embedded Linux application's memory use. The /proc/pid/maps utility/file seems to be a good resource for seeing the details. Unfortunately I don't understand all the columns and entries. What does the anonymous inode 0 entries mean? These seem to be some of the larger memory segments. Jay Conrod Each row in /proc/$PID/maps describes a region of contiguous virtual memory in a process or thread. Each row has the following fields: address perms offset dev inode pathname 08048000-08056000 r-xp 00000000 03:0c 64593 /usr/sbin/gpm address - This is the starting and ending

Is there an alternative for flex/bison that is usable on 8-bit embedded systems?

有些话、适合烂在心里 提交于 2019-11-25 21:40:31
问题 I\'m writing a small interpreter for a simple BASIC like language as an exercise on an AVR microcontroller in C using the avr-gcc toolchain. However, I\'m wondering if there are any open source tools out there that could help me writing the lexer and parser. If I would write this to run on my Linux box, I could use flex/bison. Now that I restricted myself to an 8-bit platform I have to do it all by hand, or not? 回答1: I've implemented a parser for a simple command language targeted for the