Results 1 to 8 of 8

Thread: Dev C++ Question

  1. #1
    Join Date
    Jun 2007
    Posts
    246
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Dev C++ Question

    Recently I was trying out the Dev C++ compiler. I commonly use the __declspec(naked) attribute from Microsoft Visual C++, however I was unable to find anything similar to this in Dev. Does anyone know if there is anything like this in Dev? All the attribute does is strip the prologue and epilogue of a function so you can create functions using inline assembly and not have to worry about any extra code messing you up.

  2. #2
    Join Date
    Feb 2006
    Location
    Amsterdam
    Posts
    13,692
    Mentioned
    146 Post(s)
    Quoted
    130 Post(s)

    Default

    I think Dev C++ is just a IDE, and they use MinGW (GNU GCC Minimalist), no?



    The best way to contact me is by email, which you can find on my website: http://wizzup.org
    I also get email notifications of private messages, though.

    Simba (on Twitter | Group on Villavu | Website | Stable/Unstable releases
    Documentation | Source | Simba Bug Tracker on Github and Villavu )


    My (Blog | Website)

  3. #3
    Join Date
    Apr 2007
    Location
    The Netherlands
    Posts
    5,553
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Wizzup, what programs do you use to compile and code your shizzle in linux?
    Can you list them?

    Zenma, you might want to google this, I think this a general "problem" so it should be find able.
    Check the first 5 links.
    ~Hermen

  4. #4
    Join Date
    Feb 2006
    Location
    Amsterdam
    Posts
    13,692
    Mentioned
    146 Post(s)
    Quoted
    130 Post(s)

    Default

    I compile my C/C++ code with gcc/g++/fpc, and I 'code' my code in vim.



    The best way to contact me is by email, which you can find on my website: http://wizzup.org
    I also get email notifications of private messages, though.

    Simba (on Twitter | Group on Villavu | Website | Stable/Unstable releases
    Documentation | Source | Simba Bug Tracker on Github and Villavu )


    My (Blog | Website)

  5. #5
    Join Date
    Apr 2007
    Location
    The Netherlands
    Posts
    5,553
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Wizzup, I am in 3 months 16, I think you did see some of my work if not ask me for it, do you think I am on schedule for "Informatica" class and then good enough to take the ICT path?

    Might be an little bit off-topic, but yeah.
    ~Hermen

  6. #6
    Join Date
    Dec 2006
    Location
    Banville
    Posts
    3,914
    Mentioned
    12 Post(s)
    Quoted
    98 Post(s)

    Default

    GCC is standard on all distributions, but there are also some independently maintained compilers, and there are processor dependant ones, like Intel's. Most use GCC.

    Editors for Linux include vim and emacs, vim is better, but IDE's do exist. If you use just an editor, you eventually learn to make makefiles.


    To achieve what you want using GCC, use __attribute__((naked))
    The jealous temper of mankind, ever more disposed to censure than
    to praise the work of others, has constantly made the pursuit of new
    methods and systems no less perilous than the search after unknown
    lands and seas.

  7. #7
    Join Date
    Jun 2007
    Posts
    246
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by R0b0t1 View Post
    GCC is standard on all distributions, but there are also some independently maintained compilers, and there are processor dependant ones, like Intel's. Most use GCC.

    Editors for Linux include vim and emacs, vim is better, but IDE's do exist. If you use just an editor, you eventually learn to make makefiles.


    To achieve what you want using GCC, use __attribute__((naked))
    There we go thanks.

    Quote Originally Posted by Hermen View Post
    Wizzup, what programs do you use to compile and code your shizzle in linux?
    Can you list them?

    Zenma, you might want to google this, I think this a general "problem" so it should be find able.
    Check the first 5 links.
    Google is not my friend I looked for about an hour before

  8. #8
    Join Date
    Apr 2007
    Location
    The Netherlands
    Posts
    5,553
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by zenma View Post
    There we go thanks.



    Google is not my friend I looked for about an hour before
    Hmm, can't help you then.
    Get on irc .
    Everyone will try to help you there.
    ~Hermen

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •