Search:

Type: Posts; User: Juganoo

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    1
    Views
    956

    Boundary question

    In a 32 bit processor if I want to access 8 bit or 16 bit data from RAM, how do processor manage?
    Does it access 4 bytes and disposes remaining three?

    Note: This is regarding ARM processor.
    ...
  2. Replies
    10
    Views
    1,296

    Most optmized code

    Help wanted for writing most optmized "C" code for following arithemntic calculation.

    y = (x * 63.66667)/128

    There is one floating point operation. But this needs to be converted to decimal...
  3. Replies
    4
    Views
    1,565

    Which one do you think is optimized? Juganoo

    Which one do you think is optimized?

    Juganoo
  4. Replies
    4
    Views
    1,565

    VC++ VS Borland C++

    Hello All,

    I have following snap of code. If I build the same in VC6++ I get following assembly output.

    124: val = Count(x);
    00401068 mov ecx,dword ptr [ebp-4]
    0040106B shl ...
  5. Replies
    1
    Views
    1,298

    Boundary condition

    Hello,

    I have an application running in embedded system, developed in C. We are using small memory model.

    We are hardly allocating memory using DMA( i.e using malloc).

    I have been told to...
  6. Thread: Return values

    by Juganoo
    Replies
    2
    Views
    1,731

    Return values

    There will be some library function whose return values are hardly taken care. Best example would be printf.
    During programming, we never catch its return value.

    Similar to printf, can I ignore...
  7. Replies
    1
    Views
    1,063

    Size of exe file

    I am working on Borland C++ 4.0 version compiler and Win NT system.

    If I add any standard library function very first time to my program, size of the exe file increases significantly, whereas,...
  8. Replies
    4
    Views
    2,340

    So you mean to say, If I rearrage the strcuture...

    So you mean to say, If I rearrage the strcuture following way then it will give size as 8 only.

    typedef struct Element
    {
    BYTE ID;
    BYTE Type;
    BYTE Ptr;
    BYTE Status;
    INT16 Cnt;
    INT16 Idx;
  9. Replies
    4
    Views
    2,340

    From where these two extra bytes came?

    Please see following snap code. Sizes of individual members of structure are correct but when I print size of structure it gives two bytes extra.

    #define BYTE unsigned char
    #define INT16 unsigned...
  10. Replies
    6
    Views
    1,583

    But I also have some code after first if...

    But I also have some code after first if condition. In your case, I do not think, else will execute upon TRUE on first if condition and FALSE on second if.


    if ( val[0] == '-' ) {
    if (...
  11. Replies
    6
    Views
    1,583

    bigtamscot, In order to execute error =...

    bigtamscot,

    In order to execute error = somevalue2, condition1 and condition2 both need to be true.

    In your posted code, error = 2 executes only if condition2 is TRUE and condition1 is FLASE.
    ...
  12. Replies
    6
    Views
    1,583

    Single else for two ifs.

    I have following code snap.

    if ( condition1)
    {
    // some lines of code
    error = somevalue1;
    if ( condition2 )
    {
    // some lines of code
    ...
  13. Replies
    2
    Views
    1,643

    vVv, what is C99? J

    vVv, what is C99?

    J
  14. Replies
    1
    Views
    1,017

    Post the code, we could help u.. Juganoo

    Post the code, we could help u..

    Juganoo
  15. Replies
    2
    Views
    1,643

    Inline function in Borland C 4.0

    Do Borland C 4.0 support inline function?

    If yes, does it take it as oder or request?

    Thanks,
    Juganoo
  16. Thread: Interchange

    by Juganoo
    Replies
    1
    Views
    1,114

    Interchange

    How to interchange two number without using temporary veraible?

    Juganoo
  17. Replies
    4
    Views
    6,740

    Good C programming practice

    Hello,

    You can share good and bad C programming proctices as per your perspective. If anybody know good article on web about this, let me know.

    I would like to know, whether following C coding...
  18. Replies
    9
    Views
    4,584

    How do I know that CHAR_BIT is not a standard...

    How do I know that CHAR_BIT is not a standard definition?

    Thanks for ur promt reply.

    Juganoo
  19. Replies
    9
    Views
    4,584

    what is CHAR_BITS ?

    what is CHAR_BITS ?
  20. Replies
    9
    Views
    4,584

    16 bit or 32 bit

    Given a compiler file( .exe file) how do I know, whether compiler is 16 bit or 32 bit?

    I have BC4.0, is it 16 bit compiler or 32 bit compiler?

    What is difference between bcc.exe bcc32.exe?
    ...
  21. Replies
    2
    Views
    1,850

    Code Optimization

    Hello,

    Is there any good book or web site( besides cprogramming.com) on C code optimization?

    Juganoo
  22. Replies
    5
    Views
    1,427

    Good programming Style

    Hello,

    I am developing a routine which has mutiple returns. Some of the returns are in deep nested loops.

    Is it bad programming practice to return from deep nested loops? If yes, Is there any...
  23. Where can I find Borland C 4.02 manual on web

    Hello All,

    I am using Borland C++ but we do not have copy of manual. Can anybody provide me with URL?

    Basically I am looking for library functions, debugging(with good GUI if possible) and...
  24. Thread: my_atoi

    by Juganoo
    Replies
    10
    Views
    3,261

    Thanks a lot.. It did work. But I would like...

    Thanks a lot.. It did work.

    But I would like to know, what exactly is literal? If it is beyond the scope to explain here. Your pointer somewhere in K and R or Shaum series C book would be enough....
  25. Thread: my_atoi

    by Juganoo
    Replies
    10
    Views
    3,261

    Here is some more hint. 135: ...

    Here is some more hint.

    135: *(p+j) = k;
    00401403 mov edx,dword ptr [ebp+8]
    00401406 add edx,dword ptr [ebp-8]
    00401409 mov al,byte ptr [k]
    0040140C ...
Results 1 to 25 of 38
Page 1 of 2 1 2