PCI Express I/O

Jan 15, 2010 at 4:26pm
Newbie here.. was hoping someone could give me some information on how to conduct reads/writes across a pci express interface to/from memory locations on a main board... I'm thinking its as simple as stream i/o but i'm not 100% sure.
basically if i have: int dataToWrite and I have the memory location to write to, would I just open the location as if it were a file and write to it?

Thanks for any help or resources you can provide!
Jan 15, 2010 at 7:11pm
Nope -- typically this is just a memcpy(). But it is hardware, OS and driver dependent. And it's definitely not something a newbie would do. A newbie (hell, even experienced developers) should use a library that hides all of that behind a nice API. An example would be using OpenGL or OpenCL to load data to a video card's memory.
Jan 15, 2010 at 8:29pm
I'm not actually a C++ newbie, just a newbie to this forum :-P My expectation is that with a memory map and the proper bit vectors defined there should be little to no overhead for writing data across a PCI Express interface. It sounds like that is the case.
Thanks for the reassurance !
Topic archived. No new replies allowed.