I downloaded this C/C compiler, (Orwell Dev-C, 2014 release, from this site), because I wanted to be able to do some simple programs in C. My system is Win 7.0 64-bit, 2GB mem, and 250 GB. /dev/mem traditionally provided access to the entire physical address space. That includes ram but it also includes any memory mapped IO devices. Many modern kernels will be configured with 'CONFIGSTRICTDEVMEM' which restricts /dev/mem to memory mapped IO devices only. Take a look at writemem function. It's being called when you are writing to /dev/mem. You can modify it in a way you described in your question, should do the trick (i.e. Add checking if writing happening to address of interest, and if yes - do something). – Sam Protsenko Apr 30 '15 at 23:00.
Rev. 0.3
Dev C++ Memory Limit
![C dev mem full C dev mem full](/uploads/1/2/6/0/126089742/693426743.png)
Command line
ADDRESS is a physical address: a number, like 0x12345678 (*)
VALUE is a number like 0x1234 or 42 (*)
The w|b|h designate the size of the value to read or write. W is 4-bytes (int32), H is two bytes (int16), B means one byte (int8). Reads and writes are performed as single operation.For reads, the size is W if not specified. For writes, the size must be specified. Letters W,B,H are not case sensitive.
The size parameter w|b|h can also be moved before ADDRESS:
(*) Decimal numbers for address and values are OK. Actually the numbers are read using C strtoul function, so it will interpret numbers like 0123 as octal! Probably not what you want!
NOTE: It is not guaranteed that any physical address can be accessed by this program. Validity of the ADDRESS may be checked by the OS. See the source of the kernel driver which provides the /dev/mem device for details.
Some physical addresses are hardware registers; writing or even reading them can cause your computer/device crash or melt down or explode. You've been warned!
Switches
-r
- read back after write, and printWhile it does include a native installer, loading the program proved tricky and required a restart in order for it to work. An extensive and complicated end-user agreement also needed to be accepted. After that, $29.95 buys the full version with no restrictions. Little snitch install stalling. With Little Snitch for Mac, users can prevent personal information from being sent out, although its limited features may not be worth the program's price.Little Snitch for Mac can be tried out for free for 30 days.
-a
- do not require correct alignmentDev C++ Tutorial
-A
- Absolute addresses. This does nothing in this version (it always works with absolute addresses)-V, --version
- show version-d
- debug. print some debug spew.--help
- show usage![Full Full](/uploads/1/2/6/0/126089742/581811757.png)
NOTE: The original program does not have switches. Traktor pro 2.11 free download. Giving it '--help' will read from address 0.
To check whether you have this or the original version, add a bogus 2nd parameter which will make the old version fail. For example: 'devmem -V -'.