Alex Rivera | Logout

What real platforms map hardware ports to memory addresses?

Asked 2010-12-02T10:23:19.813
11

I sometimes see statements that on some platforms the following C or C++ code:

int* ptr;
*ptr = 0;

can result in writing to a hardware input-output port if ptr happens to store the address to which that port is mapped. Usually they are called "embedded platforms".

What are real examples of such platforms?

Edit
Report

1 Answer

0

Motorola 68k series and PowerPC are the big ones.

answered 2010-12-02T10:28:55.167

Your Answer