GCC Compiler.....
i have tried to work on some hardware related programms on C using gcc... but FAR * is not working there.. its giving some error.
can anyone suggest how to find out the bug and to run that kinda programs? |
When using gcc on Linux you have flat address space and don't need far directive, because any address value is accessible (well...if it exists in your process virtual memory and you have permissions).
|
thxs for ur reply Mod. but have tried removing "far" too... its not working
i am leaving the peace of code, please let me know whats going wrong in that.. Code:
/*just trying to print alphabet 'A' on screen getting access to video memory directly.*/ |
Code:
main(){ Edit: Probably I don't have to write about it, but you need to check if you're writing to the right address, that you have the right hardware memory etc mapped at that address and so on. |
Well, these warnings are just that ... a "poor, dumb ol' compiler's" attempt to warn you about what might be a mistake in, or unanticipated consequence of, your code. Like most warnings they are usually incomprehensible in how they are worded, but they're usually prescient.
|
All times are GMT -5. The time now is 12:49 PM. |